package com.ydtech.modules.admin.controller.profitAnalysis; import com.ydtech.core.page.HttpResult; import com.ydtech.modules.admin.model.report.profitAnalysis.ProfitAnalysisDto; import com.ydtech.modules.admin.model.report.profitAnalysis.ProfitAnalysisQueryDto; import com.ydtech.modules.admin.service.ProfitAnalysisService; 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; import java.util.List; /** * @version * @author: hxl * @Date: 2024/7/31 15:33 * @Description: 利润分析 */ @Api(tags = "利润分析统计") @RequestMapping("/profitAnalysis") @RestController public class ProfitAnalysisController { @Autowired private ProfitAnalysisService profitAnalysisService; /** * @version * @author: hxl * @Date: 2024/7/31 15:35 * @Description: 查询利润分析统计 */ @PostMapping("queryPage") @ApiOperation(value = "查询利润分析数据") public HttpResult> queryPage(@RequestBody ProfitAnalysisQueryDto profitAnalysisQueryDto) { try{ List result = profitAnalysisService.queryPage(profitAnalysisQueryDto); return HttpResult.ok("查询数据成功", result); }catch (Exception e){ return HttpResult.error("查询错误"+e.getMessage()); } } }