From cf9a5039e6db9d1d5963e3fe1a37d00169ec2ef7 Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期三, 25 六月 2025 11:18:22 +0800 Subject: [PATCH] 验收报告修改 --- src/main/java/com/whyc/controller/DefectiveProductsController.java | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/whyc/controller/DefectiveProductsController.java b/src/main/java/com/whyc/controller/DefectiveProductsController.java index 2457105..f30e74f 100644 --- a/src/main/java/com/whyc/controller/DefectiveProductsController.java +++ b/src/main/java/com/whyc/controller/DefectiveProductsController.java @@ -1,5 +1,6 @@ package com.whyc.controller; +import com.whyc.dto.DefectiveDto; import com.whyc.dto.Response; import com.whyc.pojo.BOMFeedback; import com.whyc.pojo.DefectiveProducts; @@ -34,7 +35,21 @@ @ApiOperation("澶勭悊涓嶈壇鍝�") @PostMapping("updateDefective") - public Response updateDefective(@RequestBody DefectiveProductsHistory defectiveHis) { - return service.updateDefective(defectiveHis); + public Response updateDefective(@RequestPart(required = false) List<MultipartFile> multipartFileList, @RequestParam String defectiveHisJson) { + DefectiveProductsHistory defectiveHis= ActionUtil.getGson().fromJson(defectiveHisJson, DefectiveProductsHistory.class); + return service.updateDefective(defectiveHis,multipartFileList); + } + + @ApiOperation("褰掓。涓嶈壇鍝�") + @PostMapping("stopDefective") + public Response stopDefective(@RequestParam int deftId) { + return service.stopDefective(deftId); + } + + @ApiOperation("鑾峰彇涓嶈壇鍝�") + @GetMapping("getDefectives") + public Response getDefectives(@RequestParam String message) { + DefectiveDto defectiveDto= ActionUtil.getGson().fromJson(message, DefectiveDto.class); + return service.getDefectiveLimit(defectiveDto); } } \ No newline at end of file -- Gitblit v1.9.1