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

bug修改

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