Commit 0c41750a authored by 韩桐桐's avatar 韩桐桐

fix(jg):设备列表判断是否能删除编辑,添加车用气瓶业务判断

parent f974e638
......@@ -227,6 +227,16 @@
a.sequence_nbr = b.equip_transfer_id
and b.equ_id = #{record}
and (a.notice_status <![CDATA[ <> ]]> '6614' and a.notice_status <![CDATA[ <> ]]> '6615' and a.notice_status <![CDATA[ <> ]]> '6610')
UNION
select
count(1) as inUseNumber
from
tzs_jg_vehicle_information a,
tzs_jg_vehicle_information_eq b
where
a.sequence_nbr = b.vehicle_id
and b.equ_id = #{record}
and (a.status <![CDATA[ <> ]]> '使用单位待提交' and a.status <![CDATA[ <> ]]> '一级受理已驳回' and a.status <![CDATA[ <> ]]> '使用单位已撤回')
)
</select>
<select id="countEquipInUseTimesForDel" resultType="java.lang.Integer">
......@@ -316,6 +326,13 @@
tzs_jg_transfer_notice_eq b
where
b.equ_id = #{record}
UNION
select
count(1) as inUseNumber
from
tzs_jg_vehicle_information_eq b
where
b.equ_id = #{record}
)
</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