Commit f2a78f38 authored by 赵啸非's avatar 赵啸非

添加远程调试

parent b3871824
...@@ -302,9 +302,8 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD ...@@ -302,9 +302,8 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
datumCategoryQuery.setMaterialIdList(materialIdList); datumCategoryQuery.setMaterialIdList(materialIdList);
Map<Long, DatumCategoryEntity> collect = datumCategoryService.find(datumCategoryQuery).stream().collect(Collectors.toMap(x -> x.getMaterialId(), y -> y, (o, n) -> n)); Map<Long, DatumCategoryEntity> collect = datumCategoryService.find(datumCategoryQuery).stream().collect(Collectors.toMap(x -> x.getMaterialId(), y -> y, (o, n) -> n));
list.stream().forEach(entity -> { list.stream().forEach(entity -> {
if (!ObjectUtils.isEmpty(collect)) { if (!ObjectUtils.isEmpty(collect)) {
DatumCategoryEntity datumCategoryEntity = collect.get(entity.getCategoryId()); DatumCategoryEntity datumCategoryEntity = collect.get(entity.getMatterId());
if (!ObjectUtils.isEmpty(datumCategoryEntity)) { if (!ObjectUtils.isEmpty(datumCategoryEntity)) {
entity.setCategoryId(datumCategoryEntity.getCategoryId()); entity.setCategoryId(datumCategoryEntity.getCategoryId());
entity.setCategoryName(datumCategoryEntity.getCategoryName()); entity.setCategoryName(datumCategoryEntity.getCategoryName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment