From 27e913d6d28a9cfa0785d15453a4de10fd36ce6d Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期一, 10 二月 2025 11:17:59 +0800
Subject: [PATCH] 首页录像统计加上间歇

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

diff --git a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
index b10788e..5a5c238 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/WorkOrderMapper.xml
@@ -362,13 +362,13 @@
         SELECT wo.id,wo.work_order_no,wo.unit_id,woet.error_name as errorType,woet.create_time as distributeTime
         FROM t_work_order wo
         LEFT JOIN t_work_order_error_type woet ON woet.work_order_no = wo.work_order_no
-        LEFT JOIN t_work_order_auditing_record woar ON woar.work_order_no = wo.work_order_no
+        LEFT JOIN t_work_order_auditing_record woar ON woar.work_order_no = wo.work_order_no and woar.result = #{auditStatus}
         WHERE wo.deleted = 0 AND wo.deduct = 0 AND wo.status = #{status}
         AND woet.error_name in
         <foreach collection="errorList" item="error" separator="," open="(" close=")">
             #{error}
         </foreach>
-        AND woar.create_time between #{startTime} and #{endTime} and woar.result = #{auditStatus}
+        AND woar.create_time between #{startTime} and #{endTime}
     </select>
 
     <update id="updateMany">

--
Gitblit v1.8.0