@@ -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")
@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")