From 2ae8bf126599f68ba1ca721ff2acc1dd4461e9a5 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 12 九月 2023 11:05:47 +0800
Subject: [PATCH] 1. 整合了飞羽环境、徐汇油烟及金山扬尘两个数据库; 2. 优化重构自动评估模块逻辑; 3. 新增监测数据自动化统; 4. 将自动统计应用于自动评估中;

---
 src/main/resources/mapper/ds1/SubtaskMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/ds1/SubtaskMapper.xml b/src/main/resources/mapper/ds1/SubtaskMapper.xml
index 037dd56..1df171d 100644
--- a/src/main/resources/mapper/ds1/SubtaskMapper.xml
+++ b/src/main/resources/mapper/ds1/SubtaskMapper.xml
@@ -240,10 +240,10 @@
         LEFT JOIN sm_t_problemtype AS f ON d.PT_GUID = f.PT_GUID
         RIGHT JOIN im_t_mediafile AS e ON d.PL_GUID = e.MF_BusinessGUID
         WHERE
+        a.ST_DistrictCode = #{param3}
         <if test="param1 != null">
-          ((d.PL_ChangedTime is not null and d.PL_ChangedTime > #{param1}) OR d.PL_Time > #{param2})
+            AND ((d.PL_ChangedTime is not null and d.PL_ChangedTime > #{param1}) OR d.PL_Time > #{param2})
         </if>
-        AND a.ST_DistrictCode = #{param3}
         <if test="param4 != null">
             AND b.S_TypeID = #{param4}
         </if>

--
Gitblit v1.9.3