提交 e97e4c47 authored 作者: zhoushaopan's avatar zhoushaopan

feat(装备模块): 增加批量修改的接口

增加批量修改的接口
上级 adf034f2
...@@ -527,4 +527,7 @@ public interface DeviceLibraryService { ...@@ -527,4 +527,7 @@ public interface DeviceLibraryService {
List<DeviceLibrary> findAllByRfids(List<String> rfids); List<DeviceLibrary> findAllByRfids(List<String> rfids);
List<DeviceLibrary> batchDevices(List<DeviceLibrary> deviceLibraryEntity);
} }
...@@ -1239,6 +1239,12 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService { ...@@ -1239,6 +1239,12 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
return deviceLibraryDao.findAllByRfidCardIdIn(rfids); return deviceLibraryDao.findAllByRfidCardIdIn(rfids);
} }
@Override
@UpdateCache
public List<DeviceLibrary> batchDevices(List<DeviceLibrary> deviceLibraryEntity) {
return deviceLibraryDao.saveAll(deviceLibraryEntity);
}
// @Override // @Override
// @UpdateCache // @UpdateCache
// public int updatePartParentId(List<Integer> deviceIds) { // public int updatePartParentId(List<Integer> deviceIds) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论