Commit b746899d authored by suhuiguang's avatar suhuiguang

refeat(jg): 设备编辑

1.设备编辑是否发生后续业务去掉设备移交
parent f813eeb5
...@@ -2882,7 +2882,7 @@ ...@@ -2882,7 +2882,7 @@
<foreach collection="records" item="record" separator="," open="(" close=")"> <foreach collection="records" item="record" separator="," open="(" close=")">
#{record} #{record}
</foreach> </foreach>
and (a.audit_status <![CDATA[ <> ]]> '使用单位待提交' and a.audit_status <![CDATA[ <> ]]> '已作废') and (a.audit_status <![CDATA[ <> ]]> '使用单位待提交' and a.audit_status <![CDATA[ <> ]]> '已作废')
group by b.equ_id group by b.equ_id
UNION all UNION all
select select
...@@ -2924,7 +2924,7 @@ ...@@ -2924,7 +2924,7 @@
tzs_jg_scrap_cancel a, tzs_jg_scrap_cancel a,
tzs_jg_scrap_cancel_eq b tzs_jg_scrap_cancel_eq b
where where
a.sequence_nbr = b.equip_transfer_id a.sequence_nbr = b.equip_transfer_id
and a.is_delete = 0 and a.is_delete = 0
and b.equ_id in and b.equ_id in
<foreach collection="records" item="record" separator="," open="(" close=")"> <foreach collection="records" item="record" separator="," open="(" close=")">
...@@ -2932,22 +2932,6 @@ ...@@ -2932,22 +2932,6 @@
</foreach> </foreach>
and (a.audit_status <![CDATA[ <> ]]> '使用单位待提交' and a.audit_status <![CDATA[ <> ]]> '已作废') and (a.audit_status <![CDATA[ <> ]]> '使用单位待提交' and a.audit_status <![CDATA[ <> ]]> '已作废')
group by b.equ_id group by b.equ_id
UNION all
select
count(1) as inUseNumber,
b.equ_id as record
from
tzs_jg_equip_transfer a,
tzs_jg_equip_transfer_eq b
where
a.sequence_nbr = b.equip_transfer_id
and b.equ_id in
<foreach collection="records" item="record" separator="," open="(" close=")">
#{record}
</foreach>
and a.is_delete = 0
and (a.apply_status <![CDATA[ <> ]]> '6617' AND a.apply_status <![CDATA[ <> ]]> '6610')
group by b.equ_id
UNION all UNION all
select select
count(1) as inUseNumber, count(1) as inUseNumber,
...@@ -2979,6 +2963,7 @@ ...@@ -2979,6 +2963,7 @@
#{record} #{record}
</foreach> </foreach>
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,
...@@ -2994,6 +2979,7 @@ ...@@ -2994,6 +2979,7 @@
#{record} #{record}
</foreach> </foreach>
and (a.status <![CDATA[ <> ]]> '使用单位待提交' and a.status <![CDATA[ <> ]]> '已作废') and (a.status <![CDATA[ <> ]]> '使用单位待提交' and a.status <![CDATA[ <> ]]> '已作废')
group by b.record
UNION all UNION all
select select
count(1) as inUseNumber, count(1) as inUseNumber,
......
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