bug修改
This commit is contained in:
parent
023671f570
commit
7da6d0b24b
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user