TaskStatisticsController.java 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. package com.ydtech.modules.admin.controller.taskStatistics;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.ydtech.core.page.HttpResult;
  4. import com.ydtech.modules.admin.model.dto.TaskStatisticsDto;
  5. import com.ydtech.modules.admin.model.report.company.CompanyPremiumDataDto;
  6. import com.ydtech.modules.admin.model.report.company.CompanyPremiumDataQueryDto;
  7. import com.ydtech.modules.admin.model.vo.TaskStatisticsVo;
  8. import com.ydtech.modules.admin.service.TaskStatisticsService;
  9. import com.ydtech.modules.order.entity.BasePageResult;
  10. import io.swagger.annotations.Api;
  11. import io.swagger.annotations.ApiOperation;
  12. import org.springframework.beans.factory.annotation.Autowired;
  13. import org.springframework.web.bind.annotation.PostMapping;
  14. import org.springframework.web.bind.annotation.RequestBody;
  15. import org.springframework.web.bind.annotation.RequestMapping;
  16. import org.springframework.web.bind.annotation.RestController;
  17. /**
  18. * @description: 任务统计
  19. * @author: whp
  20. * @date: 2024/7/25
  21. **/
  22. @Api(tags = "控制台-任务统计")
  23. @RequestMapping("/taskStatistics")
  24. @RestController
  25. public class TaskStatisticsController {
  26. @Autowired
  27. private TaskStatisticsService taskStatisticsService;
  28. /**
  29. * @description: 渠道任务统计查询
  30. * @author: whp
  31. * @date: 2024/7/25
  32. **/
  33. @PostMapping("queryPage")
  34. @ApiOperation(value = "控制台-渠道任务统计查询")
  35. public HttpResult<IPage<TaskStatisticsDto>> queryPage(@RequestBody TaskStatisticsVo taskStatisticsVo) {
  36. try{
  37. IPage<TaskStatisticsDto> result = taskStatisticsService.queryPage(taskStatisticsVo);
  38. return HttpResult.ok("查询数据成功", result);
  39. }catch (Exception e){
  40. return HttpResult.error("查询错误"+e.getMessage());
  41. }
  42. }
  43. /**
  44. * @description: 保险公司统计查询
  45. * @author: whp
  46. * @date: 2024/7/25
  47. **/
  48. @PostMapping("insuranceCompanyQueryPage")
  49. @ApiOperation(value = "控制台-保险公司统计查询")
  50. public HttpResult<IPage<TaskStatisticsDto>> insuranceCompanyQueryPage(@RequestBody TaskStatisticsVo taskStatisticsVo) {
  51. try{
  52. IPage<TaskStatisticsDto> result = taskStatisticsService.insuranceCompanyQueryPage(taskStatisticsVo);
  53. return HttpResult.ok("查询数据成功", result);
  54. }catch (Exception e){
  55. return HttpResult.error("查询错误"+e.getMessage());
  56. }
  57. }
  58. /**
  59. * @description: 代理人统计查询
  60. * @author: whp
  61. * @date: 2024/7/26
  62. **/
  63. @PostMapping("agentStatisticsQueryPage")
  64. @ApiOperation(value = "控制台-代理人统计查询")
  65. public HttpResult<IPage<TaskStatisticsDto>> agentStatisticsQueryPage(@RequestBody TaskStatisticsVo taskStatisticsVo) {
  66. try{
  67. IPage<TaskStatisticsDto> result = taskStatisticsService.agentStatisticsQueryPage(taskStatisticsVo);
  68. return HttpResult.ok("查询数据成功", result);
  69. }catch (Exception e){
  70. return HttpResult.error("查询错误"+e.getMessage());
  71. }
  72. }
  73. /**
  74. * @description: 财务中心-费用校验
  75. * @author: whp
  76. * @date: 2024/7/29
  77. **/
  78. @PostMapping("costCenter")
  79. @ApiOperation(value = "控制台-财务中心-费用校验")
  80. public HttpResult<IPage<TaskStatisticsDto>> costCenter(@RequestBody TaskStatisticsVo taskStatisticsVo) {
  81. try{
  82. IPage<TaskStatisticsDto> result = taskStatisticsService.costCenter(taskStatisticsVo);
  83. return HttpResult.ok("查询数据成功", result);
  84. }catch (Exception e){
  85. return HttpResult.error("查询错误"+e.getMessage());
  86. }
  87. }
  88. }