From 8252c90f03621c927001044adc8b2cc9914ce4ab Mon Sep 17 00:00:00 2001 From: yxw Date: Thu, 10 Oct 2024 10:32:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=81=E7=89=87=E5=8E=9F=E6=9D=90=E6=96=99?= =?UTF-8?q?=E9=98=B2=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/busi/MesCutRawErrorProofingController.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/controller/busi/MesCutRawErrorProofingController.java b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/controller/busi/MesCutRawErrorProofingController.java index 3a221fa..fe28eb6 100644 --- a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/controller/busi/MesCutRawErrorProofingController.java +++ b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/controller/busi/MesCutRawErrorProofingController.java @@ -12,10 +12,7 @@ import cn.estsh.impp.framework.boot.util.ValidatorBean; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.StringUtils; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; /** * @Description: 裁片原材料防错 @@ -32,7 +29,8 @@ public class MesCutRawErrorProofingController { @PostMapping("/scan-sn") @ApiOperation(value = "扫描裁片工单/原材料条码") - public ResultBean doScanSn(MesCutRawErrorProofingModel model) { + public ResultBean doScanSn(@RequestBody MesCutRawErrorProofingModel model) { + try { MesCutRawErrorProofingModel result = cutRawErrorProofingService.doScanSn(model); return ResultBean.success(StringUtils.isEmpty(result.getShowInfo()) ? "扫描成功" : result.getShowInfo()).setResultObject(result); @@ -74,7 +72,7 @@ public class MesCutRawErrorProofingController { @PostMapping("/update-raw-length") @ApiOperation(value = "修改原材料条码长度") - public ResultBean doUpdateLengthByScanSn(MesCutUpdateRawLengthModel model) { + public ResultBean doUpdateLengthByScanSn(@RequestBody MesCutUpdateRawLengthModel model) { try { cutRawErrorProofingService.doUpdateLengthByScanSn(model);