From ab744742edfd1b402dbbe326acba110db8d0b8ac Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 03 九月 2024 19:49:31 +0800
Subject: [PATCH] 考核bug修复、详情页加切换

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

diff --git a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
index a487fd4..caddc95 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
@@ -96,6 +96,9 @@
             <if test="query.unitId != null">
                 AND wo.unit_id = #{query.unitId}
             </if>
+            <if test="query.unitId == null">
+                AND wo.unit_id is not null
+            </if>
             <if test="query.status != null and query.status != ''">
                 AND wo.status = #{query.status}
             </if>
@@ -258,6 +261,7 @@
 
     <select id="getNotFinishedWorkOrders" resultMap="GenWorkOrderMap">
         SELECT
+            DISTINCT
             wo.id,
             wo.serial_number,
             wo.status,

--
Gitblit v1.8.0