(select count(distinct ibjui.record) from idx_biz_jg_use_info ibjui, idx_biz_jg_inspection_detection_info di where ibjui."RECORD" = di."RECORD" and ibjui.project_contraption_id=pc.sequence_nbr and di."INSPECT_TYPE" <![CDATA[<>]]> '') as inspectNum,
(select count(1) from idx_biz_jg_use_info ibjui where ibjui.project_contraption_id= pc.sequence_nbr) as totalNum
from
from
idx_biz_jg_project_contraption pc
idx_biz_jg_project_contraption pc
where
where
...
@@ -312,14 +306,7 @@
...
@@ -312,14 +306,7 @@
</choose>
</choose>
and not EXISTS (SELECt 1 FROM tz_jyjc_inspection_application a where a.status='6611' and a.application_unit_code=#{companyCode} and a.project_contraption_id = pc.sequence_nbr)
and not EXISTS (SELECt 1 FROM tz_jyjc_inspection_application a where a.status='6611' and a.application_unit_code=#{companyCode} and a.project_contraption_id = pc.sequence_nbr)
and (pc.project_contraption_parent_id is null or pc.project_contraption_parent_id = '')
and (pc.project_contraption_parent_id is null or pc.project_contraption_parent_id = '')
) s
order by pc.sequence_nbr desc
<where>
<iftest="params.inspectionType == 'DQJY' and params.equCategory != '8300'">