whycxzp
2023-02-28 364d990197f4f2e6c49b26a8b0e01b65b3f553ad
src/main/java/com/whyc/controller/BOMFeedbakController.java
@@ -14,6 +14,7 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
@RestController
@Api(tags = "反馈管理")
@@ -42,9 +43,9 @@
    @ApiOperation("提交反馈")
    @PostMapping("submitFeedback")
    public Response submitFeedback(@RequestPart(required = false) MultipartFile multipartFile,@RequestParam String feedbackJson) throws IOException, MessagingException {
    public Response submitFeedback(@RequestPart(required = false) List<MultipartFile> multipartFileList, @RequestParam String feedbackJson) throws IOException, MessagingException {
        BOMFeedback feedback = ActionUtil.getGson().fromJson(feedbackJson, BOMFeedback.class);
        return service.submitFeedback(feedback,multipartFile);
        return service.submitFeedback(feedback,multipartFileList);
    }
    @ApiOperation(value = "根据文件路径下载")