Commit 6a16cfd8 authored by 廖旭伟's avatar 廖旭伟

bug修改

parent 163d1597
......@@ -162,7 +162,10 @@ public class EventImplementationServiceImpl extends AbstractCRUDServiceImpl<Even
List<EventImplementationEntity> list = this.find(new EventImplementationQuery().idList(entity.getIdList()));
if(CollectionUtils.isNotEmpty(list)){
List<ApplyMatterEntity> applyMatterList = new ArrayList<>();
Long userId = context == null?null:context.getUser().getId();
Long userId = null;
if(context!=null && context.getUser()!=null){
userId = context.getUser().getId();
}
for (EventImplementationEntity item:list){
ApplyMatterEntity applyMatterEntity = new ApplyMatterEntity();
applyMatterEntity.initAttrValue();
......@@ -177,6 +180,9 @@ public class EventImplementationServiceImpl extends AbstractCRUDServiceImpl<Even
applyMatterEntity.setCreateUserId(userId);
applyMatterList.add(applyMatterEntity);
}
if(CollectionUtils.isNotEmpty(applyMatterList)){
applyMatterService.save(applyMatterList);
}
}
}
return result;
......
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