|
|
@@ -68,8 +68,6 @@ public class AsyncUtils {
|
|
|
@Resource
|
|
|
private TOrderPaymentMapper tOrderPaymentMapper;
|
|
|
@Resource
|
|
|
- private AdminUserCountMapper adminUserCountMapper;
|
|
|
- @Resource
|
|
|
private FinanceCountMapper financeCountMapper;
|
|
|
@Resource
|
|
|
private WeChatUtils weChatUtils;
|
|
|
@@ -77,48 +75,8 @@ public class AsyncUtils {
|
|
|
private AdminProjectStatisticsMapper adminProjectStatisticsMapper;
|
|
|
|
|
|
|
|
|
- /**
|
|
|
- * 处理离职意见转交客户
|
|
|
- * 转出去则全部为0,转入则判定当天有没有,有则修改没有新增
|
|
|
- * @param aid
|
|
|
- */
|
|
|
- public void updateAdminUserCount(String aid, List<AdminUserCount> tramsferList) {
|
|
|
- adminUserCountMapper.updateUserCountResetting(aid);
|
|
|
- pushAdminUserCount(tramsferList);
|
|
|
- }
|
|
|
|
|
|
- private void pushAdminUserCount(List<AdminUserCount> list) {
|
|
|
- for (AdminUserCount e : list) {
|
|
|
- String startTime=DateUtils.formatDate(e.getDateTime(),AFTConstants.YYYYMMDD);
|
|
|
- AdminUserCount selectAUC = getAdminUserCount(e.getAid(),startTime);
|
|
|
- if (selectAUC==null){
|
|
|
- adminUserCountMapper.insertSelective(e);
|
|
|
- }else {
|
|
|
- AdminUserCount newAUC=new AdminUserCount();
|
|
|
- newAUC.setId(selectAUC.getId());
|
|
|
- if (e.getPrivateCount()==null)selectAUC.setPrivateCount(0);
|
|
|
- if (e.getChannelCount()==null)selectAUC.setChannelCount(0);
|
|
|
- if (e.getSignCount()==null)selectAUC.setSignCount(0);
|
|
|
- newAUC.setPrivateCount(e.getPrivateCount());
|
|
|
- newAUC.setChannelCount(e.getChannelCount());
|
|
|
- newAUC.setSignCount(e.getSignCount());
|
|
|
- adminUserCountMapper.updateByPrimaryKeySelective(newAUC);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
- private AdminUserCount getAdminUserCount(String aid, String startTime) {
|
|
|
- List<AdminUserCount> selectList = adminUserCountMapper.selectByaidAndDate(aid, startTime);
|
|
|
- AdminUserCount selectAUC=null;
|
|
|
- if (selectList.size()==1){
|
|
|
- selectAUC=selectList.get(0);
|
|
|
- }else if (selectList.size()>1){
|
|
|
- for (int i=1;i<selectList.size();i++){
|
|
|
- adminUserCountMapper.deleteByPrimaryKey(selectList.get(i).getId());
|
|
|
- }
|
|
|
- }
|
|
|
- return selectAUC;
|
|
|
- }
|
|
|
|
|
|
|
|
|
public void patentSend(EmailBo bo) throws UnsupportedEncodingException, MessagingException {
|
|
|
@@ -813,27 +771,7 @@ public class AsyncUtils {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void updateAdminUserOrderCount(List<AdminUserCount> tramsferList) {
|
|
|
- for (AdminUserCount e : tramsferList) {
|
|
|
- String startTime=DateUtils.formatDate(e.getDateTime(),AFTConstants.YYYYMMDD);
|
|
|
- AdminUserCount selectAUC = getAdminUserCount(e.getAid(),startTime);
|
|
|
- if (selectAUC==null){
|
|
|
- adminUserCountMapper.insertSelective(e);
|
|
|
- }else {
|
|
|
- AdminUserCount newAUC=new AdminUserCount();
|
|
|
- newAUC.setId(selectAUC.getId());
|
|
|
- if (e.getPrivateCount()==null)selectAUC.setPrivateCount(0);
|
|
|
- if (e.getChannelCount()==null)selectAUC.setChannelCount(0);
|
|
|
- if (e.getSignCount()==null)selectAUC.setSignCount(0);
|
|
|
- if (e.getOrderCount()==null)selectAUC.setOrderCount(0);
|
|
|
- newAUC.setPrivateCount(e.getPrivateCount());
|
|
|
- newAUC.setChannelCount(e.getChannelCount());
|
|
|
- newAUC.setSignCount(e.getSignCount());
|
|
|
- newAUC.setOrderCount(e.getOrderCount());
|
|
|
- adminUserCountMapper.updateByPrimaryKeySelective(newAUC);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
|
|
|
public void sendWeChat( String publicCarbonCopy,Integer id, String name, String startTime, String endTime, String typeName, String plan) {
|