From 6ff23a47d7d88e420d476a8e739b83f4c2dc8da4 Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期四, 25 七月 2024 08:47:19 +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