From a4bf1815bc3bda6f8d861843afce561e5536a290 Mon Sep 17 00:00:00 2001 From: erzhongxmu Date: Mon, 18 Apr 2022 17:41:53 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=B8=8B=E6=9E=B6=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=89=A7=E8=A1=8C=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/zzjee/api/wmomController.java | 3 ++- src/main/java/com/zzjee/wm/controller/WmOmQmIController.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zzjee/api/wmomController.java b/src/main/java/com/zzjee/api/wmomController.java index d5f51a75..299fcd56 100644 --- a/src/main/java/com/zzjee/api/wmomController.java +++ b/src/main/java/com/zzjee/api/wmomController.java @@ -49,7 +49,8 @@ import io.swagger.annotations.ApiParam; */ @Controller @RequestMapping("/wmom") -public class wmomController { +public class +wmomController { private static final Logger logger = Logger.getLogger(wmomController.class); // @Autowired // private UserService userService; diff --git a/src/main/java/com/zzjee/wm/controller/WmOmQmIController.java b/src/main/java/com/zzjee/wm/controller/WmOmQmIController.java index 4f3d8acc..d07d63d3 100644 --- a/src/main/java/com/zzjee/wm/controller/WmOmQmIController.java +++ b/src/main/java/com/zzjee/wm/controller/WmOmQmIController.java @@ -385,7 +385,7 @@ public class WmOmQmIController extends BaseController { @RequestMapping(params = "dotowavedown") @ResponseBody - public AjaxJson dotowavedown(HttpServletRequest request) { + public synchronized AjaxJson dotowavedown(HttpServletRequest request) { String message = null; AjaxJson j = new AjaxJson(); message = "下架成功"; @@ -444,7 +444,7 @@ public class WmOmQmIController extends BaseController { @RequestMapping(params = "dotodown") @ResponseBody - public AjaxJson dotodown(HttpServletRequest request) { + public synchronized AjaxJson dotodown(HttpServletRequest request) { String message = null; AjaxJson j = new AjaxJson(); message = "下架成功"; From 6d08050a18c93dbff2129a074db0b458b5f39c61 Mon Sep 17 00:00:00 2001 From: erzhongxmu Date: Mon, 18 Apr 2022 17:44:11 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=B8=8B=E6=9E=B6=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=89=A7=E8=A1=8C=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zzjee/wm/controller/WmToDownGoodsController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zzjee/wm/controller/WmToDownGoodsController.java b/src/main/java/com/zzjee/wm/controller/WmToDownGoodsController.java index 036d387d..07bf4591 100644 --- a/src/main/java/com/zzjee/wm/controller/WmToDownGoodsController.java +++ b/src/main/java/com/zzjee/wm/controller/WmToDownGoodsController.java @@ -726,7 +726,7 @@ public class WmToDownGoodsController extends BaseController { //下架 @RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE) @ResponseBody - public ResponseEntity create(@RequestParam String wmToDownGoodsstr, + public synchronized ResponseEntity create(@RequestParam String wmToDownGoodsstr, UriComponentsBuilder uriBuilder) { ResultDO D0 = new ResultDO(); WmToDownGoodsEntity wmToDownGoods = (WmToDownGoodsEntity)JSONHelper.json2Object(wmToDownGoodsstr,WmToDownGoodsEntity.class); @@ -812,7 +812,7 @@ public class WmToDownGoodsController extends BaseController { //装车复核 @RequestMapping(value = "/change", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE) @ResponseBody - public ResponseEntity update(@RequestParam String wmToDownGoodsstr, + public ResponseEntity update(@RequestParam String wmToDownGoodsstr, UriComponentsBuilder uriBuilder) { // 调用JSR303 Bean Validator进行校验,如果出错返回含400错误码及json格式的错误信息. ResultDO D0 = new ResultDO();