From 5e7be1e46d5d1787519189f23fb60bdeb775a7e7 Mon Sep 17 00:00:00 2001
From: 郑永安 <zyazyz250@sina.com>
Date: 星期五, 18 八月 2023 14:04:35 +0800
Subject: [PATCH] Msg

---
 src/main/java/com/gk/hotwork/Mapper/mybatis/InspectionHiddenDangerMapper.xml |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/gk/hotwork/Mapper/mybatis/InspectionHiddenDangerMapper.xml b/src/main/java/com/gk/hotwork/Mapper/mybatis/InspectionHiddenDangerMapper.xml
index c5687f6..f07b5af 100644
--- a/src/main/java/com/gk/hotwork/Mapper/mybatis/InspectionHiddenDangerMapper.xml
+++ b/src/main/java/com/gk/hotwork/Mapper/mybatis/InspectionHiddenDangerMapper.xml
@@ -23,12 +23,12 @@
         (
         SELECT
         t.*,
-        ( CASE WHEN t.unrectifyCount = 0 THEN -1 WHEN t.unrectifyCount = t.hdTocalCount THEN 2 ELSE 1 END ) rectificationStatus
+        ( CASE WHEN t.unRectifyCount = t.hdTocalCount THEN - 1 WHEN t.rectifyCount = t.hdTocalCount THEN 2 ELSE 1 END ) rectificationStatus
         FROM
         (
         SELECT
         s.*,
-        count( h.`status` = -1 OR NULL ) unRectifyCount,
+        count( h.`status` = - 1 OR NULL ) unRectifyCount,
         count( h.`status` = 1 OR NULL ) rectifyCount,
         count( h.`status` ) hdTocalCount,
         count( h.LEVEL = 1 OR NULL ) sameAsCount,
@@ -45,7 +45,8 @@
         ) t
         ) l
         LEFT JOIN company AS co ON l.checked_company_id = co.id
-        where 1=1
+        WHERE
+        1 =1
         <if test="params.inspectionName != null  and params.inspectionName != ''">
             and l.inspection_name like concat("%",#{params.inspectionName},"%")
         </if>

--
Gitblit v1.9.2