From cba21a832d2f8ddda3e610d9772c76dced0abc54 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期一, 22 七月 2024 11:02:19 +0800
Subject: [PATCH] 工单阈值deleted改为Integer
---
ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
index 5b6c6f0..e4cd9e1 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
+++ b/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,14 +48,16 @@
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'
- and wo.status = 'WAIT_DISTRIBUTE'
+ wo.deleted = 0
<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