From 8d7fb6e3c436294710f2f6a40301171d19fb0f5c Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 20 九月 2024 09:49:29 +0800
Subject: [PATCH] 工单号查运维记录bug

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

diff --git a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderYwConditionRecordMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderYwConditionRecordMapper.xml
index cfddec7..09d7a95 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderYwConditionRecordMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderYwConditionRecordMapper.xml
@@ -16,8 +16,10 @@
     <select id="selectYwConditionByYwId" resultMap="BaseResultMap">
         SELECT DISTINCT yw.id, yu.id as unit_id, yu.unit_name, yw.yw_proofMaterials, yw.create_time, yw.sys_msg, su.nick_name
         FROM t_work_order_yw_condition_record yw
-                 LEFT JOIN sys_user su ON yw.commit_user = su.user_id AND yw.deleted = 0 AND yw.work_order_no = #{workOrderNo}
+                 LEFT JOIN sys_user su ON yw.commit_user = su.user_id AND yw.deleted = 0
                  LEFT JOIN t_yw_unit yu ON su.unit_id = yu.id
+        WHERE
+            yw.work_order_no = #{workOrderNo}
         ORDER BY yw.create_time DESC
     </select>
 

--
Gitblit v1.8.0