| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- package com.ydtech.modules.admin.controller.taskStatistics;
- import com.baomidou.mybatisplus.core.metadata.IPage;
- import com.ydtech.core.page.HttpResult;
- import com.ydtech.modules.admin.model.dto.TaskStatisticsDto;
- import com.ydtech.modules.admin.model.report.company.CompanyPremiumDataDto;
- import com.ydtech.modules.admin.model.report.company.CompanyPremiumDataQueryDto;
- import com.ydtech.modules.admin.model.vo.TaskStatisticsVo;
- import com.ydtech.modules.admin.service.TaskStatisticsService;
- import com.ydtech.modules.order.entity.BasePageResult;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- 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;
- /**
- * @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<IPage<TaskStatisticsDto>> queryPage(@RequestBody TaskStatisticsVo taskStatisticsVo) {
- try{
- IPage<TaskStatisticsDto> result = taskStatisticsService.queryPage(taskStatisticsVo);
- return HttpResult.ok("查询数据成功", result);
- }catch (Exception e){
- return HttpResult.error("查询错误"+e.getMessage());
- }
- }
- /**
- * @description: 保险公司统计查询
- * @author: whp
- * @date: 2024/7/25
- **/
- @PostMapping("insuranceCompanyQueryPage")
- @ApiOperation(value = "控制台-保险公司统计查询")
- public HttpResult<IPage<TaskStatisticsDto>> insuranceCompanyQueryPage(@RequestBody TaskStatisticsVo taskStatisticsVo) {
- try{
- IPage<TaskStatisticsDto> 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<IPage<TaskStatisticsDto>> agentStatisticsQueryPage(@RequestBody TaskStatisticsVo taskStatisticsVo) {
- try{
- IPage<TaskStatisticsDto> result = taskStatisticsService.agentStatisticsQueryPage(taskStatisticsVo);
- return HttpResult.ok("查询数据成功", result);
- }catch (Exception e){
- return HttpResult.error("查询错误"+e.getMessage());
- }
- }
- /**
- * @description: 财务中心-费用校验
- * @author: whp
- * @date: 2024/7/29
- **/
- @PostMapping("costCenter")
- @ApiOperation(value = "控制台-财务中心-费用校验")
- public HttpResult<IPage<TaskStatisticsDto>> costCenter(@RequestBody TaskStatisticsVo taskStatisticsVo) {
- try{
- IPage<TaskStatisticsDto> result = taskStatisticsService.costCenter(taskStatisticsVo);
- return HttpResult.ok("查询数据成功", result);
- }catch (Exception e){
- return HttpResult.error("查询错误"+e.getMessage());
- }
- }
- }
|