|
@ -16,6 +16,7 @@ public interface DeviceInfoRepository extends JpaRepository<DeviceInfo, String>, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 根据库房查询 |
|
|
* 根据库房查询 |
|
|
|
|
|
* |
|
|
* @param storeroomId / |
|
|
* @param storeroomId / |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
@ -64,9 +65,9 @@ public interface DeviceInfoRepository extends JpaRepository<DeviceInfo, String>, |
|
|
/** |
|
|
/** |
|
|
* 根据第三方设备id和设备类型查询 |
|
|
* 根据第三方设备id和设备类型查询 |
|
|
* |
|
|
* |
|
|
* @param deviceId |
|
|
|
|
|
* @param deviceTypeId |
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
|
* @param deviceId / |
|
|
|
|
|
* @param deviceTypeId / |
|
|
|
|
|
* @return / |
|
|
*/ |
|
|
*/ |
|
|
List<DeviceInfo> findByDeviceIdAndDeviceTypeId(String deviceId, DeviceType deviceTypeId); |
|
|
List<DeviceInfo> findByDeviceIdAndDeviceTypeId(String deviceId, DeviceType deviceTypeId); |
|
|
|
|
|
|
|
@ -103,18 +104,19 @@ public interface DeviceInfoRepository extends JpaRepository<DeviceInfo, String>, |
|
|
/** |
|
|
/** |
|
|
* 根据库房id查询 |
|
|
* 根据库房id查询 |
|
|
* |
|
|
* |
|
|
* @param storeroomId |
|
|
|
|
|
* @param pageable |
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
|
* @param storeroomId / |
|
|
|
|
|
* @param pageable / |
|
|
|
|
|
* @return / |
|
|
*/ |
|
|
*/ |
|
|
@Query(value = "select * from device_info where storeroom_id=?1", nativeQuery = true) |
|
|
@Query(value = "select * from device_info where storeroom_id=?1", nativeQuery = true) |
|
|
Page<DeviceInfo> findStoreroomId(String storeroomId, Pageable pageable); |
|
|
Page<DeviceInfo> findStoreroomId(String storeroomId, Pageable pageable); |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 通过设备类型查询 |
|
|
* 通过设备类型查询 |
|
|
* @param deviceTypeId 、 |
|
|
|
|
|
* @param pageable 、 |
|
|
|
|
|
* @return 、 |
|
|
|
|
|
|
|
|
* |
|
|
|
|
|
* @param deviceTypeId / |
|
|
|
|
|
* @param pageable / |
|
|
|
|
|
* @return / |
|
|
*/ |
|
|
*/ |
|
|
@Query(value = "select * from device_info where device_type_id=?1", nativeQuery = true) |
|
|
@Query(value = "select * from device_info where device_type_id=?1", nativeQuery = true) |
|
|
Page<DeviceInfo> findDeviceTypeList(String deviceTypeId, Pageable pageable); |
|
|
Page<DeviceInfo> findDeviceTypeList(String deviceTypeId, Pageable pageable); |
|
@ -128,4 +130,13 @@ public interface DeviceInfoRepository extends JpaRepository<DeviceInfo, String>, |
|
|
value = "select * from device_info where device_type_id in (select id from device_type where name in ('密集架','回转柜')) order by create_time asc") |
|
|
value = "select * from device_info where device_type_id in (select id from device_type where name in ('密集架','回转柜')) order by create_time asc") |
|
|
Page<DeviceInfo> queryStorageDeviceAll(Pageable pageable); |
|
|
Page<DeviceInfo> queryStorageDeviceAll(Pageable pageable); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 根据设备类型查询 |
|
|
|
|
|
* |
|
|
|
|
|
* @param deviceType \ |
|
|
|
|
|
* @return |
|
|
|
|
|
*/ |
|
|
|
|
|
@Query(value = "select * from device_info where device_type_id=?1", nativeQuery = true) |
|
|
|
|
|
List<DeviceInfo> findByDeviceTypeId(String deviceTypeId); |
|
|
|
|
|
|
|
|
} |
|
|
} |