Commit 727f0a90 authored by 赵啸非's avatar 赵啸非

添加材料分类字段

parent eed27b42
......@@ -285,8 +285,10 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
matterQuery.setIdList(matterIdList);
Map<Long, MatterEntity> matterEntityMap = matterService.find(matterQuery).stream().collect(Collectors.toMap(x -> x.getId(), y -> y, (o, n) -> n));
List<Long> materialIdList = list.stream().map(item -> item.getId()).collect(Collectors.toList());
DatumCategoryQuery datumCategoryQuery = new DatumCategoryQuery();
datumCategoryQuery.setMaterialIdList(matterIdList);
datumCategoryQuery.setMaterialIdList(materialIdList);
Map<Long, DatumCategoryEntity> collect = datumCategoryService.find(datumCategoryQuery).stream().collect(Collectors.toMap(x -> x.getMaterialId(), y -> y, (o, n) -> n));
list.stream().forEach(entity -> {
if (!ObjectUtils.isEmpty(matterEntityMap)) {
......
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