提交 3aec3368 authored 作者: zjm's avatar zjm

fix(设备模块): 本级设备库去掉缓存

本级设备库去掉缓存
上级 53433968
......@@ -461,11 +461,11 @@ public class DeviceLibraryController {
Boolean hasTypeDim = deviceLibrarySelectVo.getTypeDim() != null;
Map<String,Object> map = new HashMap<>();
// List<DeviceLibrary> resultList = deviceLibraryService.getList(deviceLibrarySelectVo);
// map.put("resultList",resultList);
List<DeviceLibrary> resultList = new ArrayList<>();
resultList = deviceLibraryService.getAlldevList(deviceLibrarySelectVo);
resultList.forEach(DeviceLibrary::setConfigNameForCache);
List<DeviceLibrary> resultList = deviceLibraryService.getList(deviceLibrarySelectVo);
map.put("resultList",resultList);
// List<DeviceLibrary> resultList = new ArrayList<>();
// resultList = deviceLibraryService.getAlldevList(deviceLibrarySelectVo);
// resultList.forEach(DeviceLibrary::setConfigNameForCache);
if (hasModelDim||hasLifeStatusDim||hasLocationUnitDim||hasNameDim||hasOwnUnitDim||hasSeqDim) {
resultList = resultList.stream().filter(deviceLibrary -> {
Boolean containModelDim = !hasModelDim||deviceLibrary.getModel().contains(deviceLibrarySelectVo.getModelDim());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论