|
|
@@ -444,6 +444,7 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
|
|
|
admin.setNewCount(user.getNewCount());
|
|
|
admin.setChannelNewCount(user.getChannelNewCount());
|
|
|
admin.setReceiveCount(user.getReceiveCount());
|
|
|
+ admin.setTransferCount(user.getTransferCount());
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
@@ -469,6 +470,7 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
|
|
|
if (admin.getReceiveCount()==null) admin.setReceiveCount(0);
|
|
|
if (admin.getCompleteCount()==null) admin.setCompleteCount(0);
|
|
|
if (admin.getChannelCompleteCount()==null) admin.setChannelCompleteCount(0);
|
|
|
+ if (admin.getTransferCount()==null)admin.setTransferCount(0);
|
|
|
}
|
|
|
|
|
|
//迭代获取所有部门与部门员工并计算出部门数量
|
|
|
@@ -491,7 +493,7 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
|
|
|
* @param ab
|
|
|
*/
|
|
|
public void sumCount(DepCountBo ab) {
|
|
|
- int completeCount=0,receiveCount=0,userCount=0,signCount=0,channelCount=0,newCount=0,channelNewCount=0,channelCompleteCount=0;
|
|
|
+ int completeCount=0,receiveCount=0,userCount=0,signCount=0,channelCount=0,newCount=0,channelNewCount=0,channelCompleteCount=0,transferCount=0;
|
|
|
if (ab.getList()!=null&&!ab.getList().isEmpty()) {
|
|
|
for (DepCountBo a : ab.getList()) {
|
|
|
if (a.getCompleteCount()!=null&& a.getCompleteCount()!=0) completeCount+=a.getCompleteCount();
|
|
|
@@ -502,6 +504,7 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
|
|
|
if (a.getNewCount()!=null&& a.getNewCount()!=0) newCount+=a.getNewCount();
|
|
|
if (a.getChannelNewCount()!=null&& a.getChannelNewCount()!=0) channelNewCount+=a.getChannelNewCount();
|
|
|
if (a.getChannelCompleteCount()!=null&& a.getChannelCompleteCount()!=0) channelCompleteCount+=a.getChannelCompleteCount();
|
|
|
+ if (a.getTransferCount()!=null&& a.getTransferCount()!=0)transferCount+=a.getTransferCount();
|
|
|
}
|
|
|
}
|
|
|
if (ab.getaList()!=null&&!ab.getaList().isEmpty()) {
|
|
|
@@ -514,6 +517,7 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
|
|
|
if (a.getNewCount()!=null&& a.getNewCount()!=0) newCount+=a.getNewCount();
|
|
|
if (a.getChannelNewCount()!=null&& a.getChannelNewCount()!=0) channelNewCount+=a.getChannelNewCount();
|
|
|
if (a.getChannelCompleteCount()!=null&& a.getChannelCompleteCount()!=0) channelCompleteCount+=a.getChannelCompleteCount();
|
|
|
+ if (a.getTransferCount()!=null&& a.getTransferCount()!=0)transferCount+=a.getTransferCount();
|
|
|
}
|
|
|
}
|
|
|
ab.setCompleteCount(completeCount);
|
|
|
@@ -524,6 +528,7 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
|
|
|
ab.setNewCount(newCount);
|
|
|
ab.setChannelNewCount(channelNewCount);
|
|
|
ab.setChannelCompleteCount(channelCompleteCount);
|
|
|
+ ab.setTransferCount(transferCount);
|
|
|
|
|
|
}
|
|
|
|