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

添加材料数量统计

parent a9d71728
......@@ -246,4 +246,16 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
return Rest.ok(msg);
}
@Override
protected void findAfter(MatterDatumEntity params, PageInfo pageInfo, Context context, List<MatterDatumEntity> list) throws AppException {
list.stream().forEach(entity->{
MatterEntity matterEntity = matterService.get(entity.getMatterId(), context);
if(!ObjectUtils.isEmpty(matterEntity)){
entity.setMatterNo(matterEntity.getMatterNo());
entity.setMatterName(matterEntity.getMatterName());
}
});
super.findAfter(params, pageInfo, context, list);
}
}
\ No newline at end of file
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