whyclxw
2025-04-21 0c57f51c98c6635ebd4e4d880cf6bb7adf7f880f
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("归档不良品")