diff --git a/src/main/java/com/xkrs/controller/QcSourceController.java b/src/main/java/com/xkrs/controller/QcSourceController.java index 62407b5..cc8bbd2 100644 --- a/src/main/java/com/xkrs/controller/QcSourceController.java +++ b/src/main/java/com/xkrs/controller/QcSourceController.java @@ -16,10 +16,18 @@ public class QcSourceController { private QcSourceService qcSourceService; /** - * 添加检验数据 + * 添加检验数据(只能用Json接收字符串数据) */ @PostMapping("/insertQcSource") - public String insertQcSource(QcSourceQoInsert insertQo, @RequestParam(required = false, value = "picture") MultipartFile picture) { + public String insertQcSource(@RequestBody QcSourceQoInsert insertQo, @RequestParam(required = false, value = "picture") MultipartFile picture) { + return qcSourceService.insertQcSource(insertQo, picture); + } + + /** + * 添加检验数据(只能用表单接收图片) + */ + @PostMapping("/insertQcSourceOnlyPicture") + public String insertQcSourceOnlyPicture(QcSourceQoInsert insertQo, @RequestParam(value = "picture") MultipartFile picture) { return qcSourceService.insertQcSource(insertQo, picture); }