Commit 586fc150 authored by 韩桐桐's avatar 韩桐桐

fix(jg):1,设备编辑删除添加车用气瓶单位变更业务限制

parent cc596789
...@@ -256,6 +256,16 @@ ...@@ -256,6 +256,16 @@
a.sequence_nbr = b.vehicle_id a.sequence_nbr = b.vehicle_id
and b.equ_id = #{record} and b.equ_id = #{record}
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[ <> ]]> '已作废')
UNION
select
count(1) as inUseNumber
from
tzs_jg_change_vehicle_registration_unit a,
tzs_jg_change_vehicle_registration_unit_eq b
where
a.sequence_nbr = b.unit_change_id
and b.equ_id = #{record}
and (a.status <![CDATA[ <> ]]> '使用单位待提交' and a.status <![CDATA[ <> ]]> '一级受理已驳回' and a.status <![CDATA[ <> ]]> '使用单位已撤回' and a.status <![CDATA[ <> ]]> '已作废')
) )
</select> </select>
<select id="countEquipInUseTimesForDel" resultType="java.lang.Integer"> <select id="countEquipInUseTimesForDel" resultType="java.lang.Integer">
...@@ -352,6 +362,13 @@ ...@@ -352,6 +362,13 @@
tzs_jg_vehicle_information_eq b tzs_jg_vehicle_information_eq b
where where
b.equ_id = #{record} b.equ_id = #{record}
UNION
select
count(1) as inUseNumber
from
tzs_jg_change_vehicle_registration_unit_eq b
where
b.equ_id = #{record}
) )
</select> </select>
......
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