bug修改

This commit is contained in:
guoshengxiong 2024-04-26 11:31:33 +08:00
parent 023671f570
commit 7da6d0b24b

View File

@ -283,14 +283,14 @@
WHERE task_id = #{taskId}
</select>
<select id="selectDangerInspectCountByTask" resultType="java.util.Map">
SELECT COUNT(1) inspectNum,
IFNULL(SUM((CASE WHEN status = 1 or status = 4 THEN 0 ELSE 1 END)), 0) notEndNum
SELECT COUNT(1) inspectNum,
IFNULL(SUM((CASE WHEN status = 5 THEN 0 ELSE 1 END)), 0) notEndNum
from quality_inspection_record
where task_id = #{taskId}
</select>
<select id="selectDangerInspectCountByItemTask" resultType="java.util.Map">
SELECT COUNT(1) inspectNum,
IFNULL(SUM((CASE WHEN status = 1 or status = 4 THEN 0 ELSE 1 END)), 0) notEndNum
SELECT COUNT(1) inspectNum,
IFNULL(SUM((CASE WHEN status = 5 THEN 0 ELSE 1 END)), 0) notEndNum
from quality_inspection_record
where item_id = #{itemId}
</select>