From bfa320956f20988fe671b0c4d25aa82fe766a98d Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期一, 23 六月 2025 20:17:51 +0800 Subject: [PATCH] 验收报告添加信息 --- src/main/java/com/whyc/controller/DefectiveProductsController.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/whyc/controller/DefectiveProductsController.java b/src/main/java/com/whyc/controller/DefectiveProductsController.java index b042212..f30e74f 100644 --- a/src/main/java/com/whyc/controller/DefectiveProductsController.java +++ b/src/main/java/com/whyc/controller/DefectiveProductsController.java @@ -35,8 +35,9 @@ @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("褰掓。涓嶈壇鍝�") -- Gitblit v1.9.1