Commit 3903155b authored by suhuiguang's avatar suhuiguang

reafact(jg): 业务作废

1.更新纳管状态时逻辑修改
parent e7eec840
...@@ -80,7 +80,11 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> { ...@@ -80,7 +80,11 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> {
*/ */
Integer countEquipInUseTimesWithOutZF(String record); Integer countEquipInUseTimesWithOutZF(String record);
/**
* 查询使该设备变为已纳管的业务的数量 [> 0,则纳管状态不需要更新][< 0,则纳管状态需要更新]
* @param record 设备唯一标识
* @return 使设备变为已纳管设备的的业务数量
*/
Integer countEquipInUseTimesForDiscard(String record); Integer countEquipInUseTimesForDiscard(String record);
List<String> refreshTheDetailsDataOfCompletedUsageRegistration(String since); List<String> refreshTheDetailsDataOfCompletedUsageRegistration(String since);
......
...@@ -3191,7 +3191,7 @@ ...@@ -3191,7 +3191,7 @@
a.sequence_nbr = b.equip_transfer_id a.sequence_nbr = b.equip_transfer_id
and b.equ_id = #{record} and b.equ_id = #{record}
and a.is_delete = 0 and a.is_delete = 0
and (a.notice_status <![CDATA[ <> ]]> '6617') and (a.notice_status = '6616')
UNION all UNION all
select select
count(1) as inUseNumber count(1) as inUseNumber
...@@ -3202,7 +3202,7 @@ ...@@ -3202,7 +3202,7 @@
a.sequence_nbr = b.equip_transfer_id a.sequence_nbr = b.equip_transfer_id
and b.equ_id = #{record} and b.equ_id = #{record}
and a.is_delete = 0 and a.is_delete = 0
and ( a.status <![CDATA[ <> ]]> '已作废') and ( a.status = '已完成')
UNION all UNION all
select select
count(1) as inUseNumber count(1) as inUseNumber
...@@ -3213,7 +3213,7 @@ ...@@ -3213,7 +3213,7 @@
a.sequence_nbr = b.vehicle_id a.sequence_nbr = b.vehicle_id
and b.equ_id = #{record} and b.equ_id = #{record}
and a.is_delete = 0 and a.is_delete = 0
and (a.status <![CDATA[ <> ]]> '已作废') and (a.status = '已完成')
) )
</select> </select>
</mapper> </mapper>
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