|
@@ -42,12 +42,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectNoConfirmCount" parameterType="Long" resultType="int">
|
|
|
- select and d.del_flag = 0
|
|
|
- (select count(1) from T_PSSR_SAFETY_BLEED where sub_id = #{subId} and (confirmer1 is null or confirmer2 is null))+
|
|
|
- (select count(1) from T_PSSR_SAFETY_BREATH where sub_id = #{subId} and (confirmer1 is null or confirmer2 is null))+
|
|
|
- (select count(1) from T_PSSR_SAFETY_BRUST where sub_id = #{subId} and (confirmer1 is null or confirmer2 is null))+
|
|
|
- (select count(1) from T_PSSR_SAFETY_FLAMEARRESTER where sub_id = #{subId} and (confirmer1 is null or confirmer2 is null))+
|
|
|
- (select count(1) from T_PSSR_SAFETY_VALVE where sub_id = #{subId} and (confirmer1 is null or confirmer2 is null))
|
|
|
+ select
|
|
|
+ (select count(1) from T_PSSR_SAFETY_BLEED where sub_id = #{subId} and (confirmer1 is null or confirmer2 is null) and d.del_flag = 0)+
|
|
|
+ (select count(1) from T_PSSR_SAFETY_BREATH where sub_id = #{subId} and (confirmer1 is null or confirmer2 is null) and d.del_flag = 0)+
|
|
|
+ (select count(1) from T_PSSR_SAFETY_BRUST where sub_id = #{subId} and (confirmer1 is null or confirmer2 is null) and d.del_flag = 0)+
|
|
|
+ (select count(1) from T_PSSR_SAFETY_FLAMEARRESTER where sub_id = #{subId} and (confirmer1 is null or confirmer2 is null) and d.del_flag = 0)+
|
|
|
+ (select count(1) from T_PSSR_SAFETY_VALVE where sub_id = #{subId} and (confirmer1 is null or confirmer2 is null) and d.del_flag = 0)
|
|
|
from dual
|
|
|
</select>
|
|
|
|