Explorar o código

2023-3-1 违规修复

chaiyunlong %!s(int64=2) %!d(string=hai) anos
pai
achega
b4e1c888c9

+ 1 - 1
zd-modules/zd-modules-laboratory/src/main/resources/mapper/laboratory/LabViolationMapper.xml

@@ -617,7 +617,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                  u.`avatar` as avatar,
                  u.`nick_name` as userName,
                  d.`dept_name` as deptName,
-                 CASE WHEN b.`id` IS NOT NULL THEN 2 ELSE CASE WHEN r.`id` IS NOT NULL THEN 1 ELSE 0 END END AS status,
+                 CASE WHEN b.`id` IS NOT NULL THEN 2 ELSE CASE WHEN r.`id` IS NOT NULL THEN 2 ELSE 0 END END AS status,
                  (SELECT COUNT(1) FROM lab_negativelist_history he WHERE he.user_id = u.`user_id`) as violatioNum,
                  IFNULL(v.`negative_list_num`,0) as negativeListCount,
                  IFNULL((SELECT COUNT(1) FROM lab_blackdetail b INNER JOIN lab_blacklist t ON b.black_id = t.id WHERE t.`join_user_id` = u.user_id GROUP BY b.black_id),0) as blackListNum,