From 5c92f5ec07c74272c7bfd658ef9c9f5ceb02cfb1 Mon Sep 17 00:00:00 2001 From: lxp <1928192722@qq.com> Date: 星期六, 15 三月 2025 17:00:16 +0800 Subject: [PATCH] 统计图表、任务展示代码搬迁 --- inspect-server/src/main/java/com/ruoyi/inspect/controller/InsOrderController.java | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/inspect-server/src/main/java/com/ruoyi/inspect/controller/InsOrderController.java b/inspect-server/src/main/java/com/ruoyi/inspect/controller/InsOrderController.java index 44a6ab4..f58154e 100644 --- a/inspect-server/src/main/java/com/ruoyi/inspect/controller/InsOrderController.java +++ b/inspect-server/src/main/java/com/ruoyi/inspect/controller/InsOrderController.java @@ -151,8 +151,7 @@ @ApiOperation(value = "璐圭敤缁熻鑾峰彇鎬讳环") @GetMapping("/costStatistics2") - public Result<?> costStatistics2(@RequestBody Map<String, Object> data) throws Exception { - CostStatisticsDto costStatisticsDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), CostStatisticsDto.class); + public Result<?> costStatistics2( CostStatisticsDto costStatisticsDto) throws Exception { return Result.success(insOrderService.costStatistics2(costStatisticsDto)); } @@ -307,9 +306,7 @@ @ApiOperation(value = "鏌ョ湅璐圭敤缁熻鍒楄〃") @GetMapping("/costStatistics") - public Result<?> costStatistics(@RequestBody Map<String, Object> data) throws Exception { - Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); - CostStatisticsDto costStatisticsDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), CostStatisticsDto.class); + public Result<?> costStatistics(Page page,CostStatisticsDto costStatisticsDto) throws Exception { return Result.success(insOrderService.costStatistics(page, costStatisticsDto)); } @@ -326,4 +323,4 @@ public Result permute(Integer num, Boolean isValue) { return Result.success(insOrderService.permute(num,isValue)); } -} \ No newline at end of file +} -- Gitblit v1.9.3