From 72a1c46c21218f0a89060391fff83ea388187b31 Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Thu, 17 Mar 2022 20:53:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E4=B8=80=E4=B8=8B=E8=B5=B5?= =?UTF-8?q?=E7=8E=89=E6=9D=BE"=E4=BB=96=E7=9A=84=E6=B5=8B=E9=87=8F?= =?UTF-8?q?=E5=80=BC=E5=92=8C=E6=B5=8B=E9=87=8F=E5=9B=BE=E7=89=87=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E6=94=BE=E5=9C=A8=E4=B8=80=E4=B8=AA=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E9=87=8C=EF=BC=8C=E5=BE=97=E7=BB=99=E4=BB=96?= =?UTF-8?q?=E4=B8=A4=E4=B8=AA=E6=8E=A5=E5=8F=A3=EF=BC=8C=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E4=BC=A0=E6=95=B0=E5=80=BC=EF=BC=8C=E4=B8=80=E4=B8=AA=E4=BC=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87"=E7=9A=84=E9=9C=80=E6=B1=82=EF=BC=81?= =?UTF-8?q?=EF=BC=81=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xkrs/controller/QcSourceController.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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); }