From f92783da5430037bf80cf28a5cf7091cdecefbb7 Mon Sep 17 00:00:00 2001 From: whycxzp <glperry@163.com> Date: 星期五, 09 五月 2025 09:23: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