|
@@ -380,7 +380,16 @@ public class TaskStatisticsController {
|
|
|
**/
|
|
**/
|
|
|
@PostMapping("/insuranceCompanyExcel")
|
|
@PostMapping("/insuranceCompanyExcel")
|
|
|
@ApiOperation(value = "任务统计-保险公司-导出")
|
|
@ApiOperation(value = "任务统计-保险公司-导出")
|
|
|
- public HttpResult insuranceCompanyExcel(@RequestBody TaskStatisticsVo taskStatisticsVo) {
|
|
|
|
|
|
|
+ public HttpResult insuranceCompanyExcel(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
|
|
|
|
|
+ KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
|
|
|
|
|
+ KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
|
|
|
|
|
+ if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
|
|
|
|
|
+ if("1".equals(kztGetDeptUtilsDto.getType())){
|
|
|
|
|
+ taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
|
|
|
|
|
+ } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
|
|
|
|
|
+ taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
taskStatisticsVo.filterTime();
|
|
taskStatisticsVo.filterTime();
|
|
|
return this.taskStatisticsService.insuranceCompanyExcel(taskStatisticsVo);
|
|
return this.taskStatisticsService.insuranceCompanyExcel(taskStatisticsVo);
|
|
|
}
|
|
}
|