From 684f9e65a5229204eae4d2d64ebc509ed599bdfc Mon Sep 17 00:00:00 2001 From: chenrui <1187576398@qq.com> Date: 星期三, 05 三月 2025 17:40:49 +0800 Subject: [PATCH] 代码迁移bug解决 --- inspect-server/src/main/java/com/ruoyi/inspect/controller/InsOrderController.java | 35 ++++------------------------------- 1 files changed, 4 insertions(+), 31 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 bda6f2e..04abec3 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 @@ -85,7 +85,7 @@ @GetMapping("/selectOrderManDay") public Result<?> selectOrderManDay(Integer id) { int day = insProductService.selectOrderManDay(id); - return Result.success("鎴愬姛", LocalDateTime.now().plusHours(day).format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))); + return Result.success(LocalDateTime.now().plusHours(day).format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))); } @ApiOperation(value = "鏌ヨ妫�楠屼笅鍗曞唴瀹硅鎯�") @@ -99,7 +99,6 @@ @ApiImplicitParam(name = "id", value = "妫�楠屽崟id", dataTypeClass = Integer.class), @ApiImplicitParam(name = "state", value = "瀹℃牳缁撴灉 1:閫氳繃 2锛氫笉閫氳繃", dataTypeClass = Integer.class) }) - @PostMapping("/upInsOrderOfState") public Result<?> upInsOrderOfState(@RequestBody InsOrder insOrder) { return Result.success(insOrderService.upInsOrderOfState(insOrder)); @@ -120,7 +119,7 @@ @ApiOperation(value = "閫氳繃妫�楠屽崟妯℃澘id鑾峰彇妫�楠屽崟妯℃澘鍐呭") @GetMapping("/selectInsOrderTemplateById") public Result<?> selectInsOrderTemplateById(Integer id) { - return Result.success("鎴愬姛", insOrderTemplateService.selectInsOrderTemplateById(id)); + return Result.success(insOrderTemplateService.selectInsOrderTemplateById(id)); } @ApiOperation(value = "鍒犻櫎妫�楠屽崟妯℃澘") @@ -133,25 +132,6 @@ @GetMapping("/selectSampleAndProductByOrderId") public Result<?> selectSampleAndProductByOrderId(Page page, SampleProductDto2 sampleProductDto){ return Result.success(insOrderService.selectSampleAndProductByOrderId(page, sampleProductDto)); - } - - @ApiOperation(value = "璐圭敤缁熻") - @GetMapping("/costStatistics") - public Result<?> costStatistics(Page page, CostStatisticsDto costStatisticsDto){ - return Result.success(insOrderService.costStatistics(page, costStatisticsDto)); - } - - @ApiOperation(value = "璐圭敤缁熻鑾峰彇鎬讳环") - @GetMapping("/costStatistics2") - public Result<?> costStatistics2(CostStatisticsDto costStatisticsDto){ - return Result.success(insOrderService.costStatistics2(costStatisticsDto)); - } - - - @ApiOperation(value = "鏍峰搧缂洪櫡鎸囨暟") - @GetMapping("/selectSampleDefects") - public Result selectSampleDefects(Integer size, Integer current, String inspectionItems, String orderNumber) { - return Result.success(insOrderService.selectSampleDefects(new Page<>(current, size),inspectionItems, orderNumber)); } @@ -194,13 +174,6 @@ Integer state = (Integer) param.get("state"); insProductService.checkUpdate(orderId,state); return Result.success(); - } - - - @ApiOperation(value = "璐圭敤缁熻瀵煎嚭") - @GetMapping("/export") - public void export(CostStatisticsDto costStatisticsDto,HttpServletResponse response) throws ServletException, IOException { - insOrderService.export(costStatisticsDto,response); } @@ -278,8 +251,8 @@ } @ApiOperation(value = "鎴愬搧妫�楠屽崟鍏ㄩ儴淇℃伅瀵煎嚭") - @PostMapping("/rawAllInsOrderExport") - public void rawAllInsOrderExport(@RequestBody SampleOrderDto sampleOrderDto, HttpServletResponse response){ + @GetMapping("/rawAllInsOrderExport") + public void rawAllInsOrderExport(SampleOrderDto sampleOrderDto, HttpServletResponse response){ insOrderService.rawAllInsOrderExport(sampleOrderDto,response); } -- Gitblit v1.9.3