Commit 069a08dd authored by 廖旭伟's avatar 廖旭伟

事项申请材料查询条件增加deptCode

parent 52205668
......@@ -47,13 +47,15 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
protected MatterDatumEntity findBefore(MatterDatumEntity params, PageInfo pageInfo, Context context) throws AppException {
if(StringUtils.isNotEmpty(params.getDeptCode())){
List<MatterApplyEntity> list = matterApplyService.find(new MatterApplyQuery().deptCode(params.getDeptCode()));
List<Long> matterIdList = new ArrayList<>();
if(CollectionUtils.isNotEmpty(list)){
List<Long> matterIdList = new ArrayList<>();
list.stream().forEach(item->{
matterIdList.add(item.getId());
});
params.setMatterIdList(matterIdList);
}else {
matterIdList.add(-1l);
}
params.setMatterIdList(matterIdList);
}
return params;
}
......
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