From 78ded83a694f63a8a112d381630d05b492af0d1d Mon Sep 17 00:00:00 2001 From: wangh <123456> Date: Fri, 17 Nov 2023 17:41:04 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20PDA=E7=BB=91=E5=AE=9A=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/aucma/api/controller/PdaBindingController.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/aucma-api/src/main/java/com/aucma/api/controller/PdaBindingController.java b/aucma-api/src/main/java/com/aucma/api/controller/PdaBindingController.java index df4ac19..8be1c44 100644 --- a/aucma-api/src/main/java/com/aucma/api/controller/PdaBindingController.java +++ b/aucma-api/src/main/java/com/aucma/api/controller/PdaBindingController.java @@ -5,6 +5,7 @@ import com.aucma.common.core.domain.AjaxResult; import com.aucma.common.utils.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.Optional; @@ -16,7 +17,8 @@ import static com.aucma.common.core.domain.AjaxResult.success; * @author wanghao * @date 2023/11/14 9:28 */ -@RestController("/api") +@RestController +@RequestMapping(("/api")) public class PdaBindingController { @Autowired @@ -28,9 +30,9 @@ public class PdaBindingController { String boxName = service.selectBoxNameByCode(boxCode); if (StringUtils.isNotNull(boxName)){ service.insertBindingInfo(boxCode,boxName,innerCode); - return success( ) ; + return success() ; } - return error("箱壳条码扫描"); + return error("箱壳条码扫描错误"); } //条码绑定 }