xiangpei
2024-07-22 bb7c0d979cc614e1e28f2a56cf75fc4b905edb97
ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
@@ -22,10 +22,10 @@
            p.yw_person_name
        FROM
            t_work_order wo
        LEFT JOIN t_yw_unit u ON wo.unit_id = u.id and u.deleted = '0'
        LEFT JOIN t_yw_people p ON wo.yw_people_id = p.id and p.deleted = '0'
        LEFT JOIN t_yw_unit u ON wo.unit_id = u.id and u.deleted = 0
        LEFT JOIN t_yw_people p ON wo.yw_people_id = p.id and p.deleted = 0
        where
            wo.deleted = '0'
            wo.deleted = 0
            <if test="query.workOrderNo != null and query.workOrderNo != ''">
                AND wo.work_order_no = #{query.workOrderNo}
            </if>
@@ -48,10 +48,10 @@
        p.yw_person_name
        FROM
        t_work_order wo
        LEFT JOIN t_yw_unit u ON wo.unit_id = u.id and u.deleted = '0'
        LEFT JOIN t_yw_people p ON wo.yw_people_id = p.id and p.deleted = '0'
        LEFT JOIN t_yw_unit u ON wo.unit_id = u.id and u.deleted = 0
        LEFT JOIN t_yw_people p ON wo.yw_people_id = p.id and p.deleted = 0
        where
        wo.deleted = '0'
        wo.deleted = 0
        <if test="query.unitId != null">
            AND wo.unit_id = #{query.unitId}
        </if>