|
|
@@ -494,28 +494,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public void updateAdminUserCountByAid(String aid) {
|
|
|
- List<AdminUserCount> list = userMapper.selectListByaidAndDate(aid);
|
|
|
- for (AdminUserCount e : list) {
|
|
|
- String startTime=DateUtils.formatDate(e.getDateTime(),AFTConstants.YYYYMMDD);
|
|
|
- AdminUserCount selectAUC = getAdminUserCount(aid, 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);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
/**
|
|
|
* 用于处理异常多产生数据,删除多余数据修改原本数据
|
|
|
@@ -3127,6 +3106,11 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
return pushUserName(list);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<CustomerSimpleBo> getRestrictCustomerByName(String name) {
|
|
|
+ return userMapper.getRestrictCustomerByName(name,TokenManager.getAdminId());
|
|
|
+ }
|
|
|
+
|
|
|
private Object pushUserName(List<InputExcelUser> list) {
|
|
|
List<InputExcelUser> res=new ArrayList<>();
|
|
|
List<InputExcelUser> list2=new ArrayList<>();
|