package com.ydtech.modules.admin.controller.taskStatistics; import com.baomidou.mybatisplus.core.metadata.IPage; import com.github.pagehelper.PageInfo; import com.ydtech.core.page.HttpResult; import com.ydtech.modules.admin.model.dto.TaskStatisticsDto; import com.ydtech.modules.admin.model.dto.TaskStatisticsDtoNew; import com.ydtech.modules.admin.model.report.profitAnalysis.ProfitAnalysisQueryDto; import com.ydtech.modules.admin.model.vo.BusinessAgentData; import com.ydtech.modules.admin.model.vo.BusinessOrderData; import com.ydtech.modules.admin.model.vo.KztGetDeptUtilsDto; import com.ydtech.modules.admin.model.vo.TaskStatisticsVo; import com.ydtech.modules.admin.service.TaskStatisticsService; import com.ydtech.modules.admin.utils.KztGetDeptUtils; import io.swagger.annotations.*; import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; import java.util.HashMap; import java.util.List; /** * @description: 任务统计 * @author: whp * @date: 2024/7/25 **/ @Api(tags = "控制台-任务统计") @RequestMapping("/taskStatistics") @RestController public class TaskStatisticsController { @Autowired private TaskStatisticsService taskStatisticsService; /** * @description: 渠道任务统计查询 * @author: whp * @date: 2024/7/25 **/ @PostMapping("queryPage") @ApiOperation(value = "控制台-渠道任务统计查询") public HttpResult> queryPage(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) { try{ 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()); } } IPage result = taskStatisticsService.queryPage(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @param taskStatisticsVo * @param httpServerRequest * @return 任务统计明细导出 */ @PostMapping("/ordersDetailsExcel") @ApiOperation(value = "控制台-任务统计导出") public HttpResult ordersDetailsExcel(@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()); } } return this.taskStatisticsService.ordersDetailsExcel(taskStatisticsVo); } /** * @description: 电销任务统计查询 * @author: whp * @date: 2024/10/11 **/ @PostMapping("queryPageElectric") @ApiOperation(value = "控制台-电销任务统计查询") public HttpResult> queryPageElectric(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) { try{ 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()); } } IPage result = taskStatisticsService.queryPageElectric(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 任务统计-电销导出 * @author: whp * @date: 2024/10/29 **/ @PostMapping("/electricExcel") @ApiOperation(value = "任务统计-电销导出") public HttpResult electricExcel(@RequestBody TaskStatisticsVo taskStatisticsVo) { return this.taskStatisticsService.electricExcel(taskStatisticsVo); } /** * @description: 保险公司统计查询 * @author: whp * @date: 2024/7/25 **/ @PostMapping("insuranceCompanyQueryPage") @ApiOperation(value = "控制台-保险公司统计查询") public HttpResult> insuranceCompanyQueryPage(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) { try{ 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()); } } IPage result = taskStatisticsService.insuranceCompanyQueryPage(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 代理人统计查询 * @author: whp * @date: 2024/7/26 **/ @PostMapping("agentStatisticsQueryPage") @ApiOperation(value = "控制台-代理人统计查询") public HttpResult> agentStatisticsQueryPage(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) { try{ 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()); } } IPage result = taskStatisticsService.agentStatisticsQueryPage(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 任务统计-代理人导出 * @author: whp * @date: 2024/9/9 **/ @PostMapping("/agentExcel") @ApiOperation(value = "任务统计-代理人导出") public HttpResult channelAgentExcel(@RequestBody TaskStatisticsVo taskStatisticsVo) { return this.taskStatisticsService.agentExcel(taskStatisticsVo); } /** * @description: 财务中心-费用校验 * @author: whp * @date: 2024/7/29 **/ @PostMapping("costCenter") @ApiOperation(value = "控制台-财务中心-费用校验") public HttpResult> costCenter(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) { try{ 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()); } } IPage result = taskStatisticsService.costCenter(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 财务中心-费用校验 -人员查询 * @author: whp **/ @PostMapping("costReviewer") @ApiOperation(value = "控制台-财务中心-费用校验") public HttpResult> costReviewer(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) { try{ 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()); } } IPage result = taskStatisticsService.costReviewer(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 财务中心-费用校验-明细 * @author: whp * @date: 2024/10/10 **/ @PostMapping("costCenterDetails") @ApiOperation(value = "控制台-财务中心-费用校验详情") public HttpResult> costCenterDetails(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) { try{ 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()); } } IPage result = taskStatisticsService.costCenterDetails(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 财务中心-费用校验-明细-查看 * @author: whp * @date: 2024/10/10 **/ @PostMapping("costCenterDetailsLicense") @ApiOperation(value = "控制台-财务中心-费用校验详情-查看") public HttpResult costCenterDetailsLicense(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) { try{ 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()); } } TaskStatisticsDtoNew result = taskStatisticsService.costCenterDetailsLicense(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 任务统计-保险公司-导出 * @author: whp * @date: 2024/9/9 **/ @PostMapping("/costCenterDetailsExcel") @ApiOperation(value = "控制台-财务中心-费用校验详情-导出") public HttpResult costCenterDetailsExcel(@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()); } } return this.taskStatisticsService.costCenterDetailsExcel(taskStatisticsVo); } /** * @description: 财务中心-费用校验-合计 * @author: whp * @date: 2024/9/28 **/ @PostMapping("costCenterTotal") @ApiOperation(value = "财务中心-费用校验-合计") public HttpResult> costCenterTotal(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) { try{ 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()); } } HashMap result = taskStatisticsService.costCenterTotal(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 保险公司统计总报价 * @author: whp * @date: 2024/8/12 **/ @PostMapping("totalQuotation") @ApiOperation(value = "控制台-保险公司统计查询") public HttpResult> totalQuotation(@RequestBody TaskStatisticsVo taskStatisticsVo) { try{ IPage result = taskStatisticsService.totalQuotation(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 任务统计-保险公司-导出 * @author: whp * @date: 2024/9/9 **/ @PostMapping("/insuranceCompanyExcel") @ApiOperation(value = "任务统计-保险公司-导出") public HttpResult insuranceCompanyExcel(@RequestBody TaskStatisticsVo taskStatisticsVo) { return this.taskStatisticsService.insuranceCompanyExcel(taskStatisticsVo); } /** * @description: 控制台-业务数据 * @author: whp * @date: 2024/8/13 **/ @PostMapping("getBusinessData") @ApiOperation(value = "控制台-业务数据") public HttpResult> getBusinessData(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) { try{ 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()); } } IPage result = taskStatisticsService.getBusinessData(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 控制台 - 业务数据 -保险公司导出 * @author: whp * @date: 2024/12/13 **/ @PostMapping("/getBusinessDataExcel") @ApiOperation(value = "任务统计-保险公司导出") public HttpResult getBusinessDataExcel(@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()); } } return this.taskStatisticsService.getBusinessDataExcel(taskStatisticsVo); } /** * @description: 控制台-业务数据-统计 * @author: whp * @date: 2024/10/12 **/ @PostMapping("getCountBusinessData") @ApiOperation(value = "控制台-业务数据") public HttpResult getCountBusinessData(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) { try{ 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()); } } TaskStatisticsDto result = taskStatisticsService.getCountBusinessData(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 控制台-业务数据 - 保险分布 * @author: whp * @date: 2024/8/13 **/ @PostMapping("getDistribution") @ApiOperation(value = "控制台-业务数据-保险分布") public HttpResult> getDistribution(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) { try{ 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()); } } List result = taskStatisticsService.getDistribution(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 任务统计-渠道导出 * @author: whp * @date: 2024/8/13 **/ @PostMapping("/channelExcel") @ApiOperation(value = "任务统计-渠道导出") public HttpResult channelExcel(@RequestBody TaskStatisticsVo taskStatisticsVo) { return this.taskStatisticsService.channelExcel(taskStatisticsVo); } /** * @description: 任控制台-业务数据-代理人 * @author: whp * @date: 2024/09/09 **/ @PostMapping("getBusinessAgentData") @ApiOperation(value = "控制台-业务数据-代理人") public HttpResult> getBusinessAgentData(@RequestBody TaskStatisticsVo taskStatisticsVo) { try{ IPage result = taskStatisticsService.getBusinessAgentData(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 控制台 - 业务数据 -代理人导出 * @author: whp * @date: 2024/12/13 **/ @PostMapping("/getBusinessAgentExcel") @ApiOperation(value = "任务统计-代理人导出") public HttpResult getBusinessAgentExcel(@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()); } } return this.taskStatisticsService.getBusinessAgentExcel(taskStatisticsVo); } /** * @description: 控制台 - 业务数据 -渠道导出 * @author: whp * @date: 2024/12/13 **/ @PostMapping("/getChannelExcel") @ApiOperation(value = "任务统计-渠道导出") public HttpResult getChannelExcel(@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()); } } return this.taskStatisticsService.getChannelExcel(taskStatisticsVo); } /** * @description: 任控制台-业务数据-渠道 * @author: whp * @date: 2024/12/05 **/ @PostMapping("getBusinessElectricData") @ApiOperation(value = "任控制台-业务数据-渠道") public HttpResult> getBusinessElectricData(@RequestBody TaskStatisticsVo taskStatisticsVo) { try{ IPage result = taskStatisticsService.getBusinessElectricData(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 任控制台-业务数据-代理人-合计 * @author: whp * @date: 2024/09/09 **/ @PostMapping("getBusinessAgentDataTotal") @ApiOperation(value = "控制台-业务数据-代理人-合计") public HttpResult getBusinessAgentDataTotal(@RequestBody TaskStatisticsVo taskStatisticsVo) { try{ BusinessAgentData result = taskStatisticsService.getBusinessAgentDataTotal(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 任控制台-业务数据-代理人-合计 * @author: whp * **/ @PostMapping("getBusinessElectricDataTotal") @ApiOperation(value = "控制台-业务数据-渠道-合计") public HttpResult getBusinesElectricDataTotal(@RequestBody TaskStatisticsVo taskStatisticsVo) { try{ BusinessAgentData result = taskStatisticsService.getBusinessElectricDataTotal(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 任控制台-业务数据-代理人-详情 * @author: whp * @date: 2024/09/10 **/ @PostMapping("getBusinessAgentDataDetails") @ApiOperation(value = "控制台-业务数据-代理人-详情") public HttpResult> getBusinessAgentDataDetails(@RequestBody TaskStatisticsVo taskStatisticsVo) { try{ IPage result = taskStatisticsService.getBusinessAgentDataDetails(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * * @param taskStatisticsVo * @return 控制台任务统计 渠道代理人详情 */ @PostMapping("channelAgentDetails") @ApiOperation(value = "控制台任务统计 渠道代理人详情") public HttpResult> channelAgentDetails(@RequestBody TaskStatisticsVo taskStatisticsVo) { try{ IPage result = taskStatisticsService.channelAgentDetails(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 任控制台-业务数据-渠道-详情 * @author: hh * @date: 2024/11/19 **/ @PostMapping("getBusinessOrderDataDetails") @ApiOperation(value = "控制台-业务数据-电销-订单详情-详情") public HttpResult> getBusinessOrderDataDetails(@RequestBody TaskStatisticsVo taskStatisticsVo) { try { PageInfo businessOrderDataDetails = taskStatisticsService.getBusinessOrderDataDetails(taskStatisticsVo); return HttpResult.ok("查询数据成功", businessOrderDataDetails); } catch (Exception e) { return HttpResult.error("查询错误"+e.getMessage()); } } /** * @description: 控制台-业务数据-渠道-订单详情-合计 * @author: hh * @date: 2024/11/19 **/ @PostMapping("getBusinessOrderDataTotal") @ApiOperation(value = "控制台-业务数据-电销-订单详情-合计") public HttpResult getBusinessOrderDataTotal(@RequestBody TaskStatisticsVo taskStatisticsVo) { try { BusinessOrderData result = taskStatisticsService.getBusinessOrderDataTotal(taskStatisticsVo); return HttpResult.ok("查询数据成功", result); } catch (Exception e) { return HttpResult.error("查询错误"+e.getMessage()); } } }