4 天以前 896b0d72abd1e312917e5216e8912f10875852fa
src/main/resources/mapper/technology/TechnologyRoutingOperationMapper.xml
@@ -12,6 +12,9 @@
        <result column="update_time" property="updateTime" />
        <result column="drag_sort" property="dragSort" />
        <result column="is_quality" property="isQuality" />
        <result column="type" property="type" />
        <result column="plan_person" property="planPerson" />
        <result column="executor" property="executor" />
        <result column="create_user" property="createUser" />
        <result column="dept_id" property="deptId" />
    </resultMap>
@@ -22,11 +25,15 @@
               p.product_name as productName,
               pm.model,
               pm.model as specificationName,
               pm.unit
               pm.unit,
               sp.staff_name as planPersonName,
               se.staff_name as executorName
        from technology_routing_operation tro
                 left join technology_operation top2 on tro.technology_operation_id = top2.id
                 left join product_model pm on tro.product_model_id = pm.id
                 left join product p on pm.product_id = p.id
                 left join staff_on_job sp on tro.plan_person = sp.id
                 left join staff_on_job se on tro.executor = se.id
        <where>
            <if test="c != null">
                <if test="c.id != null">
@@ -58,11 +65,15 @@
               p.product_name as productName,
               pm.model,
               pm.model as specificationName,
               pm.unit
               pm.unit,
               sp.staff_name as planPersonName,
               se.staff_name as executorName
        from technology_routing_operation tro
                 left join technology_operation top2 on tro.technology_operation_id = top2.id
                 left join product_model pm on tro.product_model_id = pm.id
                 left join product p on pm.product_id = p.id
                 left join staff_on_job sp on tro.plan_person = sp.id
                 left join staff_on_job se on tro.executor = se.id
        <where>
            <if test="c != null">
                <if test="c.id != null">
@@ -94,11 +105,15 @@
               p.product_name as productName,
               pm.model,
               pm.model as specificationName,
               pm.unit
               pm.unit,
               sp.staff_name as planPersonName,
               se.staff_name as executorName
        from technology_routing_operation tro
                 left join technology_operation top2 on tro.technology_operation_id = top2.id
                 left join product_model pm on tro.product_model_id = pm.id
                 left join product p on pm.product_id = p.id
                 left join staff_on_job sp on tro.plan_person = sp.id
                 left join staff_on_job se on tro.executor = se.id
        where tro.id = #{id}
        limit 1
    </select>