@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.applyTaskId = :applyTaskId ,o.updateTime=current_timestamp where o.seqNumber in :seqNumbers")
@Query("update DeviceLibrary o set o.applyTaskId = :applyTaskId ,o.updateTime=current_timestamp where o.seqNumber in :seqNumbers")
...
@@ -130,7 +137,13 @@ public interface DeviceLibraryDao extends JpaRepository<DeviceLibrary, Integer>,
...
@@ -130,7 +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 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=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.storageLocationId = null,o.storageLocation=null where o.seqNumber in :seqNumbers")
@Query("update DeviceLibraryPosition d set d.storageLocationId = :StorageLocationId ,d.storageLocation = :StorageLocation where d.seqNumber in :deviceIds")