Commit 261ea4a7 authored by suhuiguang's avatar suhuiguang

fix(jyjc): 检验检测机构过滤

1.企业停用后不能接收报检
parent 03db5191
...@@ -303,6 +303,7 @@ ...@@ -303,6 +303,7 @@
AND tjoa.status = '已完成' AND tjoa.status = '已完成'
and tjoa.open_biz_type = #{openBizType} and tjoa.open_biz_type = #{openBizType}
and tjoa.agency_classify != 'JYJGFL_ZJJG' and tjoa.agency_classify != 'JYJGFL_ZJJG'
and info.is_delete = '0'
<if test="list !=null and list.size()>0"> <if test="list !=null and list.size()>0">
AND info.use_code in AND info.use_code in
<foreach collection="list" item="item" index="index" open="(" close=")" separator=","> <foreach collection="list" item="item" index="index" open="(" close=")" separator=",">
...@@ -418,6 +419,7 @@ ...@@ -418,6 +419,7 @@
<include refid="unit-list-info" /> <include refid="unit-list-info" />
where where
info.use_code = #{unitCode} info.use_code = #{unitCode}
and info.is_delete = '0'
and exists (SELECT 1 from tz_jyjc_opening_application where unit_code = #{unitCode} and status = '已完成' and open_biz_type = #{openBizType}) and exists (SELECT 1 from tz_jyjc_opening_application where unit_code = #{unitCode} and status = '已完成' and open_biz_type = #{openBizType})
</select> </select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment