提交 a6691d99 authored 作者: 133's avatar 133

feat(设备模块): 合并设备模块的service模块

合并设备模块的service模块
上级 88407219
...@@ -252,6 +252,9 @@ public interface DeviceLibraryService { ...@@ -252,6 +252,9 @@ public interface DeviceLibraryService {
*/ */
int getMaxSeqNumber(String model); int getMaxSeqNumber(String model);
List<DeviceLibrary> findAllDeviceLibraryList();
List<String> getMaxPartSeqNumber(String model,Integer isPart); List<String> getMaxPartSeqNumber(String model,Integer isPart);
......
...@@ -764,7 +764,12 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService { ...@@ -764,7 +764,12 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
deviceLibraryDao.updateDevicesOwnUnit(deviceIds); deviceLibraryDao.updateDevicesOwnUnit(deviceIds);
} }
@Override @Override
public List<DeviceLibrary> findAllDeviceLibraryList() {
return deviceLibraryDao.findAll().stream().map(DeviceLibrary::setConfigName).collect(Collectors.toList());
}
@UpdateCache @UpdateCache
public void updateLocalAndOwn(String localUnit,List<Integer> deviceIds) { public void updateLocalAndOwn(String localUnit,List<Integer> deviceIds) {
deviceLibraryDao.updateDevicesOwnUnit(localUnit,deviceIds); deviceLibraryDao.updateDevicesOwnUnit(localUnit,deviceIds);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论