|
@@ -21,6 +21,7 @@ import com.ydtech.modules.admin.model.vo.AppCustomerManagementQueryVo;
|
|
|
import com.ydtech.modules.admin.model.vo.HouLinePersonnelReportVo;
|
|
import com.ydtech.modules.admin.model.vo.HouLinePersonnelReportVo;
|
|
|
import com.ydtech.modules.admin.model.vo.QxFrontlineAgentVo;
|
|
import com.ydtech.modules.admin.model.vo.QxFrontlineAgentVo;
|
|
|
import com.ydtech.modules.admin.model.vo.SysUserBaseVO;
|
|
import com.ydtech.modules.admin.model.vo.SysUserBaseVO;
|
|
|
|
|
+import com.ydtech.modules.admin.service.SysDeptService;
|
|
|
import com.ydtech.modules.admin.service.UserReportService;
|
|
import com.ydtech.modules.admin.service.UserReportService;
|
|
|
import com.ydtech.modules.admin.utils.SliceUpDateUtil;
|
|
import com.ydtech.modules.admin.utils.SliceUpDateUtil;
|
|
|
import com.ydtech.modules.base.model.vo.PageVo;
|
|
import com.ydtech.modules.base.model.vo.PageVo;
|
|
@@ -73,6 +74,9 @@ public class UserReportServiceImpl implements UserReportService {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private SysUserRoleMapper sysUserRoleMapper;
|
|
private SysUserRoleMapper sysUserRoleMapper;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private SysDeptService sysDeptService;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @version
|
|
* @version
|
|
|
* @author: hxl
|
|
* @author: hxl
|
|
@@ -281,6 +285,23 @@ public class UserReportServiceImpl implements UserReportService {
|
|
|
userItem.setTotalPremium(orderManpower.getTotalPremium());
|
|
userItem.setTotalPremium(orderManpower.getTotalPremium());
|
|
|
//单均保费
|
|
//单均保费
|
|
|
userItem.setAveragePremium(orderManpower.getAveragePremium());
|
|
userItem.setAveragePremium(orderManpower.getAveragePremium());
|
|
|
|
|
+ String deptId = userItem.getDeptId();
|
|
|
|
|
+ if(StringUtils.isNotEmpty(deptId)){
|
|
|
|
|
+ int length = deptId.length();
|
|
|
|
|
+ if (length > 0) {
|
|
|
|
|
+ if (length > 10) {
|
|
|
|
|
+ String substring = deptId.substring(0, 6);
|
|
|
|
|
+ String substring1 = deptId.substring(0, 8);
|
|
|
|
|
+ String province = deptId.substring(0, 4);
|
|
|
|
|
+ SysDept cityName = sysDeptService.getById(substring);
|
|
|
|
|
+ SysDept districtName = sysDeptService.getById(substring1);
|
|
|
|
|
+ SysDept provinceName = sysDeptService.getById(province);
|
|
|
|
|
+ String deptName = userItem.getDeptName();
|
|
|
|
|
+ String a = provinceName.getName()+"-"+cityName.getName()+"-"+districtName.getName()+"-"+deptName;
|
|
|
|
|
+ userItem.setDeptName(a);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -311,6 +332,24 @@ public class UserReportServiceImpl implements UserReportService {
|
|
|
item.setAveragePremium(taskStatisticsDto.getAveragePremium());
|
|
item.setAveragePremium(taskStatisticsDto.getAveragePremium());
|
|
|
item.setTotalPremium(taskStatisticsDto.getTotalPremium());
|
|
item.setTotalPremium(taskStatisticsDto.getTotalPremium());
|
|
|
}
|
|
}
|
|
|
|
|
+ String deptId = item.getDeptId();
|
|
|
|
|
+ if(StringUtils.isNotEmpty(deptId)){
|
|
|
|
|
+ int length = deptId.length();
|
|
|
|
|
+ if (length > 0) {
|
|
|
|
|
+ if (length > 10) {
|
|
|
|
|
+ String substring = deptId.substring(0, 6);
|
|
|
|
|
+ String substring1 = deptId.substring(0, 8);
|
|
|
|
|
+ String province = deptId.substring(0, 4);
|
|
|
|
|
+ SysDept cityName = sysDeptService.getById(substring);
|
|
|
|
|
+ SysDept districtName = sysDeptService.getById(substring1);
|
|
|
|
|
+ SysDept provinceName = sysDeptService.getById(province);
|
|
|
|
|
+ String deptName = item.getDeptName();
|
|
|
|
|
+ String a = provinceName.getName()+"-"+cityName.getName()+"-"+districtName.getName()+"-"+deptName;
|
|
|
|
|
+ item.setDeptName(a);
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|