提交 37a527c1 authored 作者: zhoushaopan's avatar zhoushaopan

[申请模块]型号去重

上级 fa4c735b
......@@ -655,8 +655,10 @@ public class AllotBillController {
});
allotBill.setReceiveFiles(FilesUtil.stringFileToList(fileUploadVo.getReceiveFileList()));
}
//测试
allotBill.setReceiveUserbId(fileUploadVo.getReceiveUserbId());
//是否上传接收方B岗
if (fileUploadVo.getReceiveUserbId()!=null){
allotBill.setReceiveUserbId(fileUploadVo.getReceiveUserbId());
}
allotBillService.update(allotBill);
//添加装备日志
List<Integer> deviceIds = StringSplitUtil.split(allotBill.getAllotCheckDetail());
......
......@@ -203,6 +203,7 @@ public class DeviceLibraryController {
ownUnits.add(deviceVo.getOwnUnit());
locationUnits.add(deviceVo.getLocationUnit());
});
map.put("pages",deviceLibraryEntities);
map.put("models",models);
map.put("names",names);
......
......@@ -267,6 +267,8 @@ public class PackingController {
models.add(p.getModel());
}
}
//去重
models = models.stream().distinct().collect(Collectors.toList());
map.put("models",models);
map.put("names",resultList.stream().map(PackingLibrary::getName).collect(Collectors.toSet()));
return ResultUtil.success(map);
......
......@@ -131,6 +131,8 @@ public class PackingLibraryController {
for (PackingLibrary p : packingLibraryEntities){
models.add(p.getModel());
}
//去重
models = models.stream().distinct().collect(Collectors.toList());
map.put("models",models);
return ResultUtil.success(map);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论