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

zhouweidong 发布系统代码 [ibz-ou,统一组织单位]

上级 e28bcf64
...@@ -59,9 +59,6 @@ public class SysDepartmentServiceImpl extends ServiceImpl<SysDepartmentMapper, S ...@@ -59,9 +59,6 @@ public class SysDepartmentServiceImpl extends ServiceImpl<SysDepartmentMapper, S
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.core.ou.service.ISysOrganizationService sysorganizationService; protected cn.ibizlab.core.ou.service.ISysOrganizationService sysorganizationService;
@Autowired
@Lazy
ISysDepartmentService proxyService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -158,7 +155,7 @@ public class SysDepartmentServiceImpl extends ServiceImpl<SysDepartmentMapper, S ...@@ -158,7 +155,7 @@ public class SysDepartmentServiceImpl extends ServiceImpl<SysDepartmentMapper, S
if (null == et) { if (null == et) {
return false; return false;
} else { } else {
return checkKey(et) ? proxyService.update(et) : proxyService.create(et); return checkKey(et) ? getProxyService().update(et) : getProxyService().create(et);
} }
} }
...@@ -176,10 +173,10 @@ public class SysDepartmentServiceImpl extends ServiceImpl<SysDepartmentMapper, S ...@@ -176,10 +173,10 @@ public class SysDepartmentServiceImpl extends ServiceImpl<SysDepartmentMapper, S
} }
} }
if (create.size() > 0) { if (create.size() > 0) {
proxyService.createBatch(create); getProxyService().createBatch(create);
} }
if (update.size() > 0) { if (update.size() > 0) {
proxyService.updateBatch(update); getProxyService().updateBatch(update);
} }
return true; return true;
} }
...@@ -198,10 +195,10 @@ public class SysDepartmentServiceImpl extends ServiceImpl<SysDepartmentMapper, S ...@@ -198,10 +195,10 @@ public class SysDepartmentServiceImpl extends ServiceImpl<SysDepartmentMapper, S
} }
} }
if (create.size() > 0) { if (create.size() > 0) {
proxyService.createBatch(create); getProxyService().createBatch(create);
} }
if (update.size() > 0) { if (update.size() > 0) {
proxyService.updateBatch(update); getProxyService().updateBatch(update);
} }
} }
...@@ -234,6 +231,9 @@ public class SysDepartmentServiceImpl extends ServiceImpl<SysDepartmentMapper, S ...@@ -234,6 +231,9 @@ public class SysDepartmentServiceImpl extends ServiceImpl<SysDepartmentMapper, S
this.remove(new QueryWrapper<SysDepartment>().eq("orgid",orgid)); this.remove(new QueryWrapper<SysDepartment>().eq("orgid",orgid));
} }
public ISysDepartmentService getProxyService() {
return cn.ibizlab.util.security.SpringContextHolder.getBean(this.getClass());
}
@Override @Override
public void saveByOrgid(String orgid,List<SysDepartment> list) { public void saveByOrgid(String orgid,List<SysDepartment> list) {
if(list==null) if(list==null)
...@@ -256,11 +256,11 @@ public class SysDepartmentServiceImpl extends ServiceImpl<SysDepartmentMapper, S ...@@ -256,11 +256,11 @@ public class SysDepartmentServiceImpl extends ServiceImpl<SysDepartmentMapper, S
_create.add(sub); _create.add(sub);
} }
if(_update.size()>0) if(_update.size()>0)
proxyService.updateBatch(_update); getProxyService().updateBatch(_update);
if(_create.size()>0) if(_create.size()>0)
proxyService.createBatch(_create); getProxyService().createBatch(_create);
if(delIds.size()>0) if(delIds.size()>0)
proxyService.removeBatch(delIds); getProxyService().removeBatch(delIds);
} }
...@@ -354,6 +354,7 @@ public class SysDepartmentServiceImpl extends ServiceImpl<SysDepartmentMapper, S ...@@ -354,6 +354,7 @@ public class SysDepartmentServiceImpl extends ServiceImpl<SysDepartmentMapper, S
} }
......
...@@ -61,9 +61,6 @@ public class SysDeptMemberServiceImpl extends ServiceImpl<SysDeptMemberMapper, S ...@@ -61,9 +61,6 @@ public class SysDeptMemberServiceImpl extends ServiceImpl<SysDeptMemberMapper, S
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.core.ou.service.logic.ISysDeptMembersaveDeptMemberLogic savedeptmemberLogic; protected cn.ibizlab.core.ou.service.logic.ISysDeptMembersaveDeptMemberLogic savedeptmemberLogic;
@Autowired
@Lazy
ISysDeptMemberService proxyService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -154,7 +151,7 @@ public class SysDeptMemberServiceImpl extends ServiceImpl<SysDeptMemberMapper, S ...@@ -154,7 +151,7 @@ public class SysDeptMemberServiceImpl extends ServiceImpl<SysDeptMemberMapper, S
if (null == et) { if (null == et) {
return false; return false;
} else { } else {
return checkKey(et) ? proxyService.update(et) : proxyService.create(et); return checkKey(et) ? getProxyService().update(et) : getProxyService().create(et);
} }
} }
...@@ -172,10 +169,10 @@ public class SysDeptMemberServiceImpl extends ServiceImpl<SysDeptMemberMapper, S ...@@ -172,10 +169,10 @@ public class SysDeptMemberServiceImpl extends ServiceImpl<SysDeptMemberMapper, S
} }
} }
if (create.size() > 0) { if (create.size() > 0) {
proxyService.createBatch(create); getProxyService().createBatch(create);
} }
if (update.size() > 0) { if (update.size() > 0) {
proxyService.updateBatch(update); getProxyService().updateBatch(update);
} }
return true; return true;
} }
...@@ -194,10 +191,10 @@ public class SysDeptMemberServiceImpl extends ServiceImpl<SysDeptMemberMapper, S ...@@ -194,10 +191,10 @@ public class SysDeptMemberServiceImpl extends ServiceImpl<SysDeptMemberMapper, S
} }
} }
if (create.size() > 0) { if (create.size() > 0) {
proxyService.createBatch(create); getProxyService().createBatch(create);
} }
if (update.size() > 0) { if (update.size() > 0) {
proxyService.updateBatch(update); getProxyService().updateBatch(update);
} }
} }
...@@ -317,6 +314,10 @@ public class SysDeptMemberServiceImpl extends ServiceImpl<SysDeptMemberMapper, S ...@@ -317,6 +314,10 @@ public class SysDeptMemberServiceImpl extends ServiceImpl<SysDeptMemberMapper, S
public ISysDeptMemberService getProxyService() {
return cn.ibizlab.util.security.SpringContextHolder.getBean(this.getClass());
}
} }
......
...@@ -63,9 +63,6 @@ public class SysEmployeeServiceImpl extends ServiceImpl<SysEmployeeMapper, SysEm ...@@ -63,9 +63,6 @@ public class SysEmployeeServiceImpl extends ServiceImpl<SysEmployeeMapper, SysEm
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.core.ou.service.ISysPostService syspostService; protected cn.ibizlab.core.ou.service.ISysPostService syspostService;
@Autowired
@Lazy
ISysEmployeeService proxyService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -172,7 +169,7 @@ public class SysEmployeeServiceImpl extends ServiceImpl<SysEmployeeMapper, SysEm ...@@ -172,7 +169,7 @@ public class SysEmployeeServiceImpl extends ServiceImpl<SysEmployeeMapper, SysEm
if (null == et) { if (null == et) {
return false; return false;
} else { } else {
return checkKey(et) ? proxyService.update(et) : proxyService.create(et); return checkKey(et) ? getProxyService().update(et) : getProxyService().create(et);
} }
} }
...@@ -190,10 +187,10 @@ public class SysEmployeeServiceImpl extends ServiceImpl<SysEmployeeMapper, SysEm ...@@ -190,10 +187,10 @@ public class SysEmployeeServiceImpl extends ServiceImpl<SysEmployeeMapper, SysEm
} }
} }
if (create.size() > 0) { if (create.size() > 0) {
proxyService.createBatch(create); getProxyService().createBatch(create);
} }
if (update.size() > 0) { if (update.size() > 0) {
proxyService.updateBatch(update); getProxyService().updateBatch(update);
} }
return true; return true;
} }
...@@ -212,10 +209,10 @@ public class SysEmployeeServiceImpl extends ServiceImpl<SysEmployeeMapper, SysEm ...@@ -212,10 +209,10 @@ public class SysEmployeeServiceImpl extends ServiceImpl<SysEmployeeMapper, SysEm
} }
} }
if (create.size() > 0) { if (create.size() > 0) {
proxyService.createBatch(create); getProxyService().createBatch(create);
} }
if (update.size() > 0) { if (update.size() > 0) {
proxyService.updateBatch(update); getProxyService().updateBatch(update);
} }
} }
...@@ -371,6 +368,10 @@ public class SysEmployeeServiceImpl extends ServiceImpl<SysEmployeeMapper, SysEm ...@@ -371,6 +368,10 @@ public class SysEmployeeServiceImpl extends ServiceImpl<SysEmployeeMapper, SysEm
public ISysEmployeeService getProxyService() {
return cn.ibizlab.util.security.SpringContextHolder.getBean(this.getClass());
}
} }
......
...@@ -56,9 +56,6 @@ public class SysOrganizationServiceImpl extends ServiceImpl<SysOrganizationMappe ...@@ -56,9 +56,6 @@ public class SysOrganizationServiceImpl extends ServiceImpl<SysOrganizationMappe
protected cn.ibizlab.core.ou.service.ISysEmployeeService sysemployeeService; protected cn.ibizlab.core.ou.service.ISysEmployeeService sysemployeeService;
protected cn.ibizlab.core.ou.service.ISysOrganizationService sysorganizationService = this; protected cn.ibizlab.core.ou.service.ISysOrganizationService sysorganizationService = this;
@Autowired
@Lazy
ISysOrganizationService proxyService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -163,7 +160,7 @@ public class SysOrganizationServiceImpl extends ServiceImpl<SysOrganizationMappe ...@@ -163,7 +160,7 @@ public class SysOrganizationServiceImpl extends ServiceImpl<SysOrganizationMappe
if (null == et) { if (null == et) {
return false; return false;
} else { } else {
return checkKey(et) ? proxyService.update(et) : proxyService.create(et); return checkKey(et) ? getProxyService().update(et) : getProxyService().create(et);
} }
} }
...@@ -181,10 +178,10 @@ public class SysOrganizationServiceImpl extends ServiceImpl<SysOrganizationMappe ...@@ -181,10 +178,10 @@ public class SysOrganizationServiceImpl extends ServiceImpl<SysOrganizationMappe
} }
} }
if (create.size() > 0) { if (create.size() > 0) {
proxyService.createBatch(create); getProxyService().createBatch(create);
} }
if (update.size() > 0) { if (update.size() > 0) {
proxyService.updateBatch(update); getProxyService().updateBatch(update);
} }
return true; return true;
} }
...@@ -203,10 +200,10 @@ public class SysOrganizationServiceImpl extends ServiceImpl<SysOrganizationMappe ...@@ -203,10 +200,10 @@ public class SysOrganizationServiceImpl extends ServiceImpl<SysOrganizationMappe
} }
} }
if (create.size() > 0) { if (create.size() > 0) {
proxyService.createBatch(create); getProxyService().createBatch(create);
} }
if (update.size() > 0) { if (update.size() > 0) {
proxyService.updateBatch(update); getProxyService().updateBatch(update);
} }
} }
...@@ -306,6 +303,10 @@ public class SysOrganizationServiceImpl extends ServiceImpl<SysOrganizationMappe ...@@ -306,6 +303,10 @@ public class SysOrganizationServiceImpl extends ServiceImpl<SysOrganizationMappe
public ISysOrganizationService getProxyService() {
return cn.ibizlab.util.security.SpringContextHolder.getBean(this.getClass());
}
} }
......
...@@ -57,9 +57,6 @@ public class SysPostServiceImpl extends ServiceImpl<SysPostMapper, SysPost> impl ...@@ -57,9 +57,6 @@ public class SysPostServiceImpl extends ServiceImpl<SysPostMapper, SysPost> impl
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.core.ou.service.ISysTeamMemberService systeammemberService; protected cn.ibizlab.core.ou.service.ISysTeamMemberService systeammemberService;
@Autowired
@Lazy
ISysPostService proxyService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -145,7 +142,7 @@ public class SysPostServiceImpl extends ServiceImpl<SysPostMapper, SysPost> impl ...@@ -145,7 +142,7 @@ public class SysPostServiceImpl extends ServiceImpl<SysPostMapper, SysPost> impl
if (null == et) { if (null == et) {
return false; return false;
} else { } else {
return checkKey(et) ? proxyService.update(et) : proxyService.create(et); return checkKey(et) ? getProxyService().update(et) : getProxyService().create(et);
} }
} }
...@@ -162,10 +159,10 @@ public class SysPostServiceImpl extends ServiceImpl<SysPostMapper, SysPost> impl ...@@ -162,10 +159,10 @@ public class SysPostServiceImpl extends ServiceImpl<SysPostMapper, SysPost> impl
} }
} }
if (create.size() > 0) { if (create.size() > 0) {
proxyService.createBatch(create); getProxyService().createBatch(create);
} }
if (update.size() > 0) { if (update.size() > 0) {
proxyService.updateBatch(update); getProxyService().updateBatch(update);
} }
return true; return true;
} }
...@@ -183,10 +180,10 @@ public class SysPostServiceImpl extends ServiceImpl<SysPostMapper, SysPost> impl ...@@ -183,10 +180,10 @@ public class SysPostServiceImpl extends ServiceImpl<SysPostMapper, SysPost> impl
} }
} }
if (create.size() > 0) { if (create.size() > 0) {
proxyService.createBatch(create); getProxyService().createBatch(create);
} }
if (update.size() > 0) { if (update.size() > 0) {
proxyService.updateBatch(update); getProxyService().updateBatch(update);
} }
} }
...@@ -235,6 +232,10 @@ public class SysPostServiceImpl extends ServiceImpl<SysPostMapper, SysPost> impl ...@@ -235,6 +232,10 @@ public class SysPostServiceImpl extends ServiceImpl<SysPostMapper, SysPost> impl
public ISysPostService getProxyService() {
return cn.ibizlab.util.security.SpringContextHolder.getBean(this.getClass());
}
} }
......
...@@ -57,9 +57,6 @@ public class SysTeamMemberServiceImpl extends ServiceImpl<SysTeamMemberMapper, S ...@@ -57,9 +57,6 @@ public class SysTeamMemberServiceImpl extends ServiceImpl<SysTeamMemberMapper, S
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.core.ou.service.ISysTeamService systeamService; protected cn.ibizlab.core.ou.service.ISysTeamService systeamService;
@Autowired
@Lazy
ISysTeamMemberService proxyService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -150,7 +147,7 @@ public class SysTeamMemberServiceImpl extends ServiceImpl<SysTeamMemberMapper, S ...@@ -150,7 +147,7 @@ public class SysTeamMemberServiceImpl extends ServiceImpl<SysTeamMemberMapper, S
if (null == et) { if (null == et) {
return false; return false;
} else { } else {
return checkKey(et) ? proxyService.update(et) : proxyService.create(et); return checkKey(et) ? getProxyService().update(et) : getProxyService().create(et);
} }
} }
...@@ -168,10 +165,10 @@ public class SysTeamMemberServiceImpl extends ServiceImpl<SysTeamMemberMapper, S ...@@ -168,10 +165,10 @@ public class SysTeamMemberServiceImpl extends ServiceImpl<SysTeamMemberMapper, S
} }
} }
if (create.size() > 0) { if (create.size() > 0) {
proxyService.createBatch(create); getProxyService().createBatch(create);
} }
if (update.size() > 0) { if (update.size() > 0) {
proxyService.updateBatch(update); getProxyService().updateBatch(update);
} }
return true; return true;
} }
...@@ -190,10 +187,10 @@ public class SysTeamMemberServiceImpl extends ServiceImpl<SysTeamMemberMapper, S ...@@ -190,10 +187,10 @@ public class SysTeamMemberServiceImpl extends ServiceImpl<SysTeamMemberMapper, S
} }
} }
if (create.size() > 0) { if (create.size() > 0) {
proxyService.createBatch(create); getProxyService().createBatch(create);
} }
if (update.size() > 0) { if (update.size() > 0) {
proxyService.updateBatch(update); getProxyService().updateBatch(update);
} }
} }
...@@ -306,6 +303,10 @@ public class SysTeamMemberServiceImpl extends ServiceImpl<SysTeamMemberMapper, S ...@@ -306,6 +303,10 @@ public class SysTeamMemberServiceImpl extends ServiceImpl<SysTeamMemberMapper, S
public ISysTeamMemberService getProxyService() {
return cn.ibizlab.util.security.SpringContextHolder.getBean(this.getClass());
}
} }
......
...@@ -51,9 +51,6 @@ public class SysTeamServiceImpl extends ServiceImpl<SysTeamMapper, SysTeam> impl ...@@ -51,9 +51,6 @@ public class SysTeamServiceImpl extends ServiceImpl<SysTeamMapper, SysTeam> impl
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.core.ou.service.ISysTeamMemberService systeammemberService; protected cn.ibizlab.core.ou.service.ISysTeamMemberService systeammemberService;
@Autowired
@Lazy
ISysTeamService proxyService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -139,7 +136,7 @@ public class SysTeamServiceImpl extends ServiceImpl<SysTeamMapper, SysTeam> impl ...@@ -139,7 +136,7 @@ public class SysTeamServiceImpl extends ServiceImpl<SysTeamMapper, SysTeam> impl
if (null == et) { if (null == et) {
return false; return false;
} else { } else {
return checkKey(et) ? proxyService.update(et) : proxyService.create(et); return checkKey(et) ? getProxyService().update(et) : getProxyService().create(et);
} }
} }
...@@ -156,10 +153,10 @@ public class SysTeamServiceImpl extends ServiceImpl<SysTeamMapper, SysTeam> impl ...@@ -156,10 +153,10 @@ public class SysTeamServiceImpl extends ServiceImpl<SysTeamMapper, SysTeam> impl
} }
} }
if (create.size() > 0) { if (create.size() > 0) {
proxyService.createBatch(create); getProxyService().createBatch(create);
} }
if (update.size() > 0) { if (update.size() > 0) {
proxyService.updateBatch(update); getProxyService().updateBatch(update);
} }
return true; return true;
} }
...@@ -177,10 +174,10 @@ public class SysTeamServiceImpl extends ServiceImpl<SysTeamMapper, SysTeam> impl ...@@ -177,10 +174,10 @@ public class SysTeamServiceImpl extends ServiceImpl<SysTeamMapper, SysTeam> impl
} }
} }
if (create.size() > 0) { if (create.size() > 0) {
proxyService.createBatch(create); getProxyService().createBatch(create);
} }
if (update.size() > 0) { if (update.size() > 0) {
proxyService.updateBatch(update); getProxyService().updateBatch(update);
} }
} }
...@@ -229,6 +226,10 @@ public class SysTeamServiceImpl extends ServiceImpl<SysTeamMapper, SysTeam> impl ...@@ -229,6 +226,10 @@ public class SysTeamServiceImpl extends ServiceImpl<SysTeamMapper, SysTeam> impl
public ISysTeamService getProxyService() {
return cn.ibizlab.util.security.SpringContextHolder.getBean(this.getClass());
}
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册