提交 c70e3832 编写于 作者: ibizdev's avatar ibizdev

ibizdev提交

上级 ecf305de
...@@ -131,7 +131,9 @@ public class WFMember extends EntityMP implements Serializable { ...@@ -131,7 +131,9 @@ public class WFMember extends EntityMP implements Serializable {
@Override @Override
public Serializable getDefaultKey(boolean gen) { public Serializable getDefaultKey(boolean gen) {
return DigestUtils.md5DigestAsHex(String.format("%s||%s" ,this.getGroupid(),this.getUserid()).getBytes()); if((!ObjectUtils.isEmpty(this.getGroupid()))&&(!ObjectUtils.isEmpty(this.getUserid())))
return DigestUtils.md5DigestAsHex(String.format("%s||%s" ,this.getGroupid(),this.getUserid()).getBytes());
return null;
} }
} }
......
...@@ -112,7 +112,7 @@ public class WFGroupServiceImpl extends ServiceImpl<WFGroupMapper, WFGroup> impl ...@@ -112,7 +112,7 @@ public class WFGroupServiceImpl extends ServiceImpl<WFGroupMapper, WFGroup> impl
@Override @Override
public void createBatch(List<WFGroup> list) { public void createBatch(List<WFGroup> list) {
saveBatch(list,batchSize); this.saveBatch(list,batchSize);
} }
@Override @Override
......
...@@ -77,7 +77,7 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i ...@@ -77,7 +77,7 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
@Override @Override
public void createBatch(List<WFMember> list) { public void createBatch(List<WFMember> list) {
list.forEach(item->fillParentData(item)); list.forEach(item->fillParentData(item));
saveBatch(list,batchSize); this.saveOrUpdateBatch(list,batchSize);
} }
@Override @Override
...@@ -182,7 +182,7 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i ...@@ -182,7 +182,7 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
if(_update.size()>0) if(_update.size()>0)
this.updateBatch(_update); this.updateBatch(_update);
if(_create.size()>0) if(_create.size()>0)
this.saveBatch(_create); this.createBatch(_create);
if(delIds.size()>0) if(delIds.size()>0)
this.removeBatch(delIds); this.removeBatch(delIds);
} }
......
...@@ -120,7 +120,7 @@ public class WFProcessDefinitionServiceImpl extends ServiceImpl<WFProcessDefinit ...@@ -120,7 +120,7 @@ public class WFProcessDefinitionServiceImpl extends ServiceImpl<WFProcessDefinit
@Override @Override
public void createBatch(List<WFProcessDefinition> list) { public void createBatch(List<WFProcessDefinition> list) {
saveBatch(list,batchSize); this.saveBatch(list,batchSize);
} }
@Override @Override
......
...@@ -114,7 +114,7 @@ public class WFSystemServiceImpl extends ServiceImpl<WFSystemMapper, WFSystem> i ...@@ -114,7 +114,7 @@ public class WFSystemServiceImpl extends ServiceImpl<WFSystemMapper, WFSystem> i
@Override @Override
public void createBatch(List<WFSystem> list) { public void createBatch(List<WFSystem> list) {
saveBatch(list,batchSize); this.saveBatch(list,batchSize);
} }
@Override @Override
......
...@@ -130,7 +130,7 @@ public class WFUserServiceImpl extends ServiceImpl<WFUserMapper, WFUser> impleme ...@@ -130,7 +130,7 @@ public class WFUserServiceImpl extends ServiceImpl<WFUserMapper, WFUser> impleme
@Override @Override
public void createBatch(List<WFUser> list) { public void createBatch(List<WFUser> list) {
saveBatch(list,batchSize); this.saveBatch(list,batchSize);
} }
@Override @Override
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册