From c5cc7da07c7f202f336468c0cd0d2789b4775b03 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期三, 09 十月 2024 11:31:15 +0800 Subject: [PATCH] 最新版本 --- server/visits/dmvisit_admin/src/main/java/com/doumee/api/business/WmsPushController.java | 42 +++++++++++++++++++++--------------------- 1 files changed, 21 insertions(+), 21 deletions(-) diff --git a/server/visits/dmvisit_admin/src/main/java/com/doumee/api/business/WmsPushController.java b/server/visits/dmvisit_admin/src/main/java/com/doumee/api/business/WmsPushController.java index b526e8e..51ba5d1 100644 --- a/server/visits/dmvisit_admin/src/main/java/com/doumee/api/business/WmsPushController.java +++ b/server/visits/dmvisit_admin/src/main/java/com/doumee/api/business/WmsPushController.java @@ -14,6 +14,7 @@ import com.doumee.core.model.ApiResponse; import com.doumee.core.utils.Constants; import com.doumee.core.wms.model.request.WmsActionNoticeRequest; +import com.doumee.core.wms.model.request.WmsBaseRequest; import com.doumee.core.wms.model.request.WmsInboundNoticeRequest; import com.doumee.core.wms.model.request.WmsOutboundNoticeRequest; import com.doumee.core.wms.model.response.WmsBaseResponse; @@ -51,42 +52,41 @@ private WmsService wmsService; @PreventRepeat - @ApiOperation("銆怌MS銆戞帹閫佸叆搴撳崟閫氱煡浠诲姟") + @ApiOperation("銆怶MS銆戞帹閫佸叆搴撳崟閫氱煡浠诲姟") @PostMapping("/push/inboundNotice") - public WmsBaseResponse inboundNotice(@RequestBody List<WmsInboundNoticeRequest> param) { + public WmsBaseResponse inboundNotice(@RequestBody WmsBaseRequest<WmsInboundNoticeRequest> param) { int success = Constants.ZERO; WmsBaseResponse result =null; try { result = wmsService.inboundNotice(param); }catch (BusinessException e){ - log.error("銆怌MS銆戞帹閫佸叆搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); + log.error("銆怶MS銆戞帹閫佸叆搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); success = Constants.ONE; }catch (Exception e){ - log.error("銆怌MS銆戞帹閫佸叆搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); + log.error("銆怶MS銆戞帹閫佸叆搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); e.printStackTrace(); success = Constants.ONE; }finally { wmsService.saveInterfaceLog("/wms/push/inboundNotice", "鎺ㄩ�佸叆搴撳崟閫氱煡浠诲姟",JSONObject.toJSONString(param), success, JSONObject.toJSONString(result),Constants.ONE); } - return result; } @PreventRepeat - @ApiOperation("銆怌MS銆戞帹閫佸嚭搴撳崟閫氱煡浠诲姟") + @ApiOperation("銆怶MS銆戞帹閫佸嚭搴撳崟閫氱煡浠诲姟") @PostMapping("/push/outboundNotice") - public WmsBaseResponse outboundNotice(@RequestBody List<WmsOutboundNoticeRequest> param) { + public WmsBaseResponse outboundNotice(@RequestBody WmsBaseRequest<WmsOutboundNoticeRequest> param) { int success = Constants.ZERO; WmsBaseResponse result =null; try { result = wmsService.outboundNotice(param); }catch (BusinessException e){ - log.error("銆怌MS銆戞帹閫佸嚭搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); + log.error("銆怶MS銆戞帹閫佸嚭搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); success = Constants.ONE; }catch (Exception e){ - log.error("銆怌MS銆戞帹閫佸嚭搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); + log.error("銆怶MS銆戞帹閫佸嚭搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); e.printStackTrace(); success = Constants.ONE; }finally { @@ -97,18 +97,18 @@ return result; } @PreventRepeat - @ApiOperation("銆怌MS銆戞帹閫佸彇娑堝叆搴撳崟閫氱煡浠诲姟") + @ApiOperation("銆怶MS銆戞帹閫佸彇娑堝叆搴撳崟閫氱煡浠诲姟") @PostMapping("/push/cancelInbound") - public WmsBaseResponse cancelInbound(@RequestBody List<WmsActionNoticeRequest> param) { + public WmsBaseResponse cancelInbound(@RequestBody WmsBaseRequest<WmsActionNoticeRequest> param) { int success = Constants.ZERO; WmsBaseResponse result =null; try { result = wmsService.cancelInbound(param); }catch (BusinessException e){ - log.error("銆怌MS銆戞帹閫佸彇娑堝叆搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); + log.error("銆怶MS銆戞帹閫佸彇娑堝叆搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); success = Constants.ONE; }catch (Exception e){ - log.error("銆怌MS銆戞帹閫佸彇娑堝叆搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); + log.error("銆怶MS銆戞帹閫佸彇娑堝叆搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); e.printStackTrace(); success = Constants.ONE; }finally { @@ -118,18 +118,18 @@ return result; } @PreventRepeat - @ApiOperation("銆怌MS銆戞帹閫佸彇娑堝嚭搴撳崟閫氱煡浠诲姟") + @ApiOperation("銆怶MS銆戞帹閫佸彇娑堝嚭搴撳崟閫氱煡浠诲姟") @PostMapping("/push/cancelOutbound") - public WmsBaseResponse cancelOutbound(@RequestBody List<WmsActionNoticeRequest> param) { + public WmsBaseResponse cancelOutbound(@RequestBody WmsBaseRequest<WmsActionNoticeRequest> param) { int success = Constants.ZERO; WmsBaseResponse result =null; try { result = wmsService.cancelOutbound(param); }catch (BusinessException e){ - log.error("銆怌MS銆戞帹閫佸彇娑堝嚭搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); + log.error("銆怶MS銆戞帹閫佸彇娑堝嚭搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); success = Constants.ONE; }catch (Exception e){ - log.error("銆怌MS銆戞帹閫佸彇娑堝嚭搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); + log.error("銆怶MS銆戞帹閫佸彇娑堝嚭搴撳崟閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); e.printStackTrace(); success = Constants.ONE; }finally { @@ -139,18 +139,18 @@ return result; } @PreventRepeat - @ApiOperation("銆怌MS銆戞帹閫佸嚭鍏ュ簱浣滀笟瀹屾垚閫氱煡浠诲姟") + @ApiOperation("銆怶MS銆戞帹閫佸嚭鍏ュ簱浣滀笟瀹屾垚閫氱煡浠诲姟") @PostMapping("/push/doneTask") - public WmsBaseResponse doneTask(@RequestBody List<WmsActionNoticeRequest> param) { + public WmsBaseResponse doneTask(@RequestBody WmsBaseRequest<WmsActionNoticeRequest> param) { int success = Constants.ZERO; WmsBaseResponse result =null; try { result = wmsService.doneTask(param); }catch (BusinessException e){ - log.error("銆怌MS銆戞帹閫佸嚭鍏ュ簱浣滀笟瀹屾垚閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); + log.error("銆怶MS銆戞帹閫佸嚭鍏ュ簱浣滀笟瀹屾垚閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); success = Constants.ONE; }catch (Exception e){ - log.error("銆怌MS銆戞帹閫佸嚭鍏ュ簱浣滀笟瀹屾垚閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); + log.error("銆怶MS銆戞帹閫佸嚭鍏ュ簱浣滀笟瀹屾垚閫氱煡浠诲姟===澶辫触锛�"+e.getMessage()); e.printStackTrace(); success = Constants.ONE; }finally { -- Gitblit v1.9.3