Commit 13097b4f authored by 廖旭伟's avatar 廖旭伟

修改测试bug

parent a2d7a6a1
...@@ -169,6 +169,14 @@ public class MatterApplyServiceImpl extends AbstractCRUDServiceImpl<MatterApplyD ...@@ -169,6 +169,14 @@ public class MatterApplyServiceImpl extends AbstractCRUDServiceImpl<MatterApplyD
protected void updateAfter(MatterApplyEntity entity, Context context) throws AppException { protected void updateAfter(MatterApplyEntity entity, Context context) throws AppException {
if(CollectionUtils.isNotEmpty(entity.getApplyDatumList())){ if(CollectionUtils.isNotEmpty(entity.getApplyDatumList())){
matterApplyDatumService.getDao().delete(new MatterApplyDatumQuery().applyId(entity.getId())); matterApplyDatumService.getDao().delete(new MatterApplyDatumQuery().applyId(entity.getId()));
for (MatterApplyDatumEntity item:entity.getApplyDatumList()){
item.setSiteId(entity.getSiteId());
item.setSingleMatterId(entity.getSingleMatterId());
item.setMatterId(entity.getMatterId());
item.setApplyId(entity.getId());
item.setCreateTime(entity.getCreateTime());
item.setCreateUserId(entity.getCreateUserId());
}
matterApplyDatumService.save(entity.getApplyDatumList()); matterApplyDatumService.save(entity.getApplyDatumList());
} }
} }
......
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