Commit dbb5941a authored by suhuiguang's avatar suhuiguang

feat(已纳管设备无证时可编辑):已纳管设备调整

1.已纳管设备调整 2.技术参数整理
parent 0da748cc
...@@ -2859,6 +2859,7 @@ ...@@ -2859,6 +2859,7 @@
</foreach> </foreach>
and a.is_delete = 0 and a.is_delete = 0
and (a.status <![CDATA[ <> ]]> '使用单位待提交' and a.status <![CDATA[ <> ]]> '一级受理已驳回' and a.status <![CDATA[ <> ]]> '使用单位已撤回' and a.status <![CDATA[ <> ]]> '已作废') and (a.status <![CDATA[ <> ]]> '使用单位待提交' and a.status <![CDATA[ <> ]]> '一级受理已驳回' and a.status <![CDATA[ <> ]]> '使用单位已撤回' and a.status <![CDATA[ <> ]]> '已作废')
group by b.equ_id
UNION all UNION all
select select
count(1) as inUseNumber, count(1) as inUseNumber,
...@@ -2955,26 +2956,23 @@ ...@@ -2955,26 +2956,23 @@
count(1) as inUseNumber, count(1) as inUseNumber,
a.project_contraption_id as projectContraptionId a.project_contraption_id as projectContraptionId
from from
tzs_jg_use_registration a, tzs_jg_use_registration a
tzs_jg_use_registration_eq b
where where
a.sequence_nbr = b.equip_transfer_id a.project_contraption_id in
and a.project_contraption_id in
<foreach collection="projectContraptionIds" item="projectContraptionId" separator="," open="(" close=")"> <foreach collection="projectContraptionIds" item="projectContraptionId" separator="," open="(" close=")">
#{projectContraptionId} #{projectContraptionId}
</foreach> </foreach>
and a.is_delete = 0 and a.is_delete = 0
and (a.status <![CDATA[ <> ]]> '使用单位待提交' and a.status <![CDATA[ <> ]]> '一级受理已驳回' and a.status <![CDATA[ <> ]]> '使用单位已撤回' and a.status <![CDATA[ <> ]]> '已作废') and (a.status <![CDATA[ <> ]]> '使用单位待提交' and a.status <![CDATA[ <> ]]> '一级受理已驳回' and a.status <![CDATA[ <> ]]> '使用单位已撤回' and a.status <![CDATA[ <> ]]> '已作废')
group by a.project_contraption_id
union all union all
select select
count(1) as inUseNumber, count(1) as inUseNumber,
a.project_contraption_id as projectContraptionId a.project_contraption_id as projectContraptionId
from from
tzs_jg_maintain_notice a, tzs_jg_maintain_notice a
tzs_jg_maintain_notice_eq b
where where
a.sequence_nbr = b.equip_transfer_id a.is_delete = 0
and a.is_delete = 0
and (a.notice_status <![CDATA[ <> ]]> '6617' AND a.notice_status <![CDATA[ <> ]]> '6616') and (a.notice_status <![CDATA[ <> ]]> '6617' AND a.notice_status <![CDATA[ <> ]]> '6616')
and a.project_contraption_id in and a.project_contraption_id in
<foreach collection="projectContraptionIds" item="projectContraptionId" separator="," open="(" close=")"> <foreach collection="projectContraptionIds" item="projectContraptionId" separator="," open="(" close=")">
...@@ -2986,11 +2984,9 @@ ...@@ -2986,11 +2984,9 @@
count(1) as inUseNumber, count(1) as inUseNumber,
a.project_contraption_id as projectContraptionId a.project_contraption_id as projectContraptionId
from from
tzs_jg_reform_notice a, tzs_jg_reform_notice a
tzs_jg_reform_notice_eq b
where where
a.sequence_nbr = b.equip_transfer_id a.is_delete = 0
and a.is_delete = 0
and (a.notice_status <![CDATA[ <> ]]> '6617' AND a.notice_status <![CDATA[ <> ]]> '6616') and (a.notice_status <![CDATA[ <> ]]> '6617' AND a.notice_status <![CDATA[ <> ]]> '6616')
and a.project_contraption_id in and a.project_contraption_id in
<foreach collection="projectContraptionIds" item="projectContraptionId" separator="," open="(" close=")"> <foreach collection="projectContraptionIds" item="projectContraptionId" separator="," open="(" close=")">
...@@ -3002,11 +2998,9 @@ ...@@ -3002,11 +2998,9 @@
count(1) as inUseNumber, count(1) as inUseNumber,
a.project_contraption_id as projectContraptionId a.project_contraption_id as projectContraptionId
from from
tzs_jg_change_registration_reform a, tzs_jg_change_registration_reform a
tzs_jg_change_registration_reform_eq b
where where
a.sequence_nbr = b.equip_transfer_id a.is_delete = 0
and a.is_delete = 0
and ( a.audit_status <![CDATA[ <> ]]> '已作废' AND a.audit_status <![CDATA[ <> ]]> '已完成') and ( a.audit_status <![CDATA[ <> ]]> '已作废' AND a.audit_status <![CDATA[ <> ]]> '已完成')
and a.project_contraption_id in and a.project_contraption_id in
<foreach collection="projectContraptionIds" item="projectContraptionId" separator="," open="(" close=")"> <foreach collection="projectContraptionIds" item="projectContraptionId" separator="," open="(" close=")">
......
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