4 天以前 e146067ae373f9385b9ddbb57c6eb7a933bf2561
src/main/resources/mapper/technology/TechnologyOperationMapper.xml
@@ -14,13 +14,20 @@
        <result column="is_quality" property="isQuality" />
        <result column="type" property="type" />
        <result column="device_ledger_id" property="deviceLedgerId" />
        <result column="plan_person" property="planPerson" />
        <result column="executor" property="executor" />
        <result column="process_type" property="processType" />
        <result column="create_user" property="createUser" />
        <result column="dept_id" property="deptId" />
    </resultMap>
    <select id="listPage" resultType="com.ruoyi.technology.bean.vo.TechnologyOperationVo">
        select *
        select t.*,
               sp.staff_name as planPersonName,
               se.staff_name as executorName
        from technology_operation t
            left join staff_on_job sp on t.plan_person = sp.id
            left join staff_on_job se on t.executor = se.id
        <where>
            <if test="c.name != null and c.name != ''">
                and t.name like concat('%', #{c.name}, '%')