提交 2e9d88a1 authored 作者: zjm's avatar zjm

fix(丢失,找回、报废、销毁、退役): 任务完成之后设备数据的库房ID 设置为0

任务完成之后设备数据的库房ID 设置为0
上级 62260ea5
...@@ -111,7 +111,7 @@ public interface DeviceLibraryDao extends JpaRepository<DeviceLibrary, Integer>, ...@@ -111,7 +111,7 @@ public interface DeviceLibraryDao extends JpaRepository<DeviceLibrary, Integer>,
@Transactional @Transactional
@Modifying @Modifying
@Query("update DeviceLibrary o set o.lifeStatus = :lifeStatus ,o.updateTime=current_timestamp,o.storageLocation=null ,o.storageLocationId=null where o.seqNumber in :seqNumbers") @Query("update DeviceLibrary o set o.lifeStatus = :lifeStatus ,o.updateTime=current_timestamp,o.storageLocation=null ,o.storageLocationId=0 where o.seqNumber in :seqNumbers")
int upDateSeqNumbersLeftStatusStorageLocationNull(Integer lifeStatus,@Param("seqNumbers") List<String> seqNumbers); int upDateSeqNumbersLeftStatusStorageLocationNull(Integer lifeStatus,@Param("seqNumbers") List<String> seqNumbers);
@Transactional @Transactional
...@@ -137,13 +137,13 @@ public interface DeviceLibraryDao extends JpaRepository<DeviceLibrary, Integer>, ...@@ -137,13 +137,13 @@ public interface DeviceLibraryDao extends JpaRepository<DeviceLibrary, Integer>,
@Transactional @Transactional
@Modifying @Modifying
@Query("update DeviceLibrary o set o.lifeStatus = :lifeStatus ,o.locationUnit = :unitName,o.ownUnit = :unitName ,o.lockStatus=:lock ,o.updateTime=current_timestamp ,o.storageLocation =null ,o.storageLocationId=null where o.id in :idList") @Query("update DeviceLibrary o set o.lifeStatus = :lifeStatus ,o.locationUnit = :unitName,o.ownUnit = :unitName ,o.lockStatus=:lock ,o.updateTime=current_timestamp ,o.storageLocation =null ,o.storageLocationId=0 where o.id in :idList")
int upDateLeftStatusAndUnitNameAndLockStatusStorageLocationNull(Integer lifeStatus,String unitName,Integer lock,@Param("idList") List<Integer> idList); int upDateLeftStatusAndUnitNameAndLockStatusStorageLocationNull(Integer lifeStatus,String unitName,Integer lock,@Param("idList") List<Integer> idList);
@Transactional @Transactional
@Modifying @Modifying
@Query("update DeviceLibrary o set o.lifeStatus = :lifeStatus ,o.locationUnit = :unitName,o.ownUnit = :unitName,o.lockStatus=:lock ,o.updateTime=current_timestamp,o.storageLocationId = null,o.storageLocation=null where o.seqNumber in :seqNumbers") @Query("update DeviceLibrary o set o.lifeStatus = :lifeStatus ,o.locationUnit = :unitName,o.ownUnit = :unitName,o.lockStatus=:lock ,o.updateTime=current_timestamp ,o.storageLocation =null ,o.storageLocationId=0 where o.seqNumber in :seqNumbers")
int upDateSeqNumbersLeftStatusAndUnitNameAndLockStatus(Integer lifeStatus,String unitName,Integer lock,@Param("seqNumbers") List<String> seqNumbers); int upDateSeqNumbersLeftStatusAndUnitNameAndLockStatus(Integer lifeStatus,String unitName,Integer lock,@Param("seqNumbers") List<String> seqNumbers);
@Transactional @Transactional
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论