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

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

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