liurunyu
2024-12-02 cdce015a7143b5e9d0fb003b80b9aa307906c14b
pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeWorkOrderMapper.xml
@@ -269,12 +269,24 @@
    <where>
      AND ord.deleted = 0
      <if test = "dispatcherId != null">
        AND ord.dispatcher_id = #{dispatcherId}
      </if>
      <if test = "inspectorId != null">
        AND ord.inspector_id = #{inspectorId}
      </if>
      <if test = "dispatcher != null and dispatcher !=''">
        AND us1.name like CONCAT('%',#{dispatcher},'%')
      </if>
      <if test = "inspector != null and inspector !=''">
        AND us2.name like CONCAT('%',#{inspector},'%')
      </if>
      <if test = "state != null">
        AND ord.state = #{state}
      </if>
      <if test = "timeStart != null and timeStop != null">
@@ -308,7 +320,8 @@
            WHEN res.state = 2 THEN   '已通过'
            WHEN res.state = 3 THEN   '已驳回'
            ELSE '未上报'
        END AS processingState
        END AS processingState,
        res.id AS proResultId
    FROM ope_work_order ord
        INNER JOIN ba_user us1 ON us1.id = ord.dispatcher_id
        INNER JOIN ba_user us2 ON us2.id = ord.inspector_id
@@ -317,6 +330,14 @@
    <where>
      AND ord.deleted = 0
      <if test = "dispatcherId != null">
        AND ord.dispatcher_id = #{dispatcherId}
      </if>
      <if test = "inspectorId != null">
        AND ord.inspector_id = #{inspectorId}
      </if>
      <if test = "dispatcher != null and dispatcher !=''">
        AND us1.name like CONCAT('%',#{dispatcher},'%')
      </if>
@@ -325,6 +346,10 @@
        AND us2.name like CONCAT('%',#{inspector},'%')
      </if>
      <if test = "state != null">
        AND ord.state = #{state}
      </if>
      <if test = "timeStart != null and timeStop != null">
        AND ord.dispatch_time BETWEEN #{timeStart} AND #{timeStop}
      </if>