From 34ef93d02c402663740ecfeccf772fba7cd53c3f Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 19 七月 2024 15:49:46 +0800
Subject: [PATCH] 工单处理记录接口重构

---
 ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
index 0c5ab30..478d8ff 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
@@ -17,11 +17,11 @@
 
     <select id="page" resultType="com.ycl.platform.domain.vo.WorkOrderVO">
         SELECT
-        wo.*,
-        u.unit_name,
-        p.yw_person_name
+            wo.*,
+            u.unit_name,
+            p.yw_person_name
         FROM
-        t_work_order wo
+            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'
         where
@@ -32,7 +32,7 @@
             <if test="query.status != null">
                 AND wo.status = #{query.status}
             </if>
-            <if test="query.errorType != null and query.errType != ''">
+            <if test="query.errorType != null and query.errorType != ''">
                 AND wo.error_type = #{query.errorType}
             </if>
             <if test="query.start != null">
@@ -52,10 +52,12 @@
         LEFT JOIN t_yw_people p ON wo.yw_people_id = p.id and p.deleted = '0'
         where
         wo.deleted = '0'
-        and wo.status = 'WAIT_DISTRIBUTE'
         <if test="query.unitId != null">
             AND wo.unit_id = #{query.unitId}
         </if>
+        <if test="query.status != null and query.status != ''">
+            AND wo.status = #{query.status}
+        </if>
         ORDER BY wo.create_time DESC
     </select>
 

--
Gitblit v1.8.0