From e85f49c2318eaa4fffc323d75245303fb1fc99e9 Mon Sep 17 00:00:00 2001 From: jiayang yue Date: Tue, 8 Apr 2025 18:13:32 +0800 Subject: [PATCH] =?UTF-8?q?04.08=20=E7=94=9F=E4=BA=A7=E5=85=A5=E5=BA=93=20?= =?UTF-8?q?=E9=A2=86=E6=96=99=E7=94=B3=E8=AF=B7=20-=20=E6=8F=90=E8=B4=A7?= =?UTF-8?q?=E5=8D=95=E6=98=8E=E7=BB=86=E6=B1=87=E6=80=BB=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E3=80=81=E5=88=B7=E6=96=B0=E6=8F=90=E8=B4=A7=E5=8D=95=E3=80=81?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=A2=84=E7=95=99=20=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E5=8F=91=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/IssureNotifyController.java | 45 ++++++++++++++++++ .../service/IssureNotifyService.java | 6 +++ .../service/impl/IssureNotifyServiceImpl.java | 47 +++++++++++++++++++ 3 files changed, 98 insertions(+) diff --git a/src/main/java/com/srq/modules/orderIssure/controller/IssureNotifyController.java b/src/main/java/com/srq/modules/orderIssure/controller/IssureNotifyController.java index 147f26a..e2f40b0 100644 --- a/src/main/java/com/srq/modules/orderIssure/controller/IssureNotifyController.java +++ b/src/main/java/com/srq/modules/orderIssure/controller/IssureNotifyController.java @@ -89,4 +89,49 @@ public class IssureNotifyController { List list = issureNotifyService.getBillLadingDetail(issureNotifyEntity); return R.ok().put("list", list); } + + /** + * @Description 创建提货单汇总 + * @Title createBillLadingSummary + * @param issureNotifyEntity + * @author jiayang_yue + * @data 2025/4/7 18:18 + * @return com.srq.common.utils.R + **/ + @PostMapping("/createBillLadingSummary") + @ResponseBody + public R createBillLadingSummary(@RequestBody IssureNotifyEntity issureNotifyEntity) { + issureNotifyService.createBillLadingSummary(issureNotifyEntity); + return R.ok(); + } + + /** + * @Description 刷新提货单 + * @Title refreshPickOrder + * @param issureNotifyEntity + * @author jiayang_yue + * @data 2025/4/7 18:18 + * @return com.srq.common.utils.R + **/ + @PostMapping("/refreshPickOrder") + @ResponseBody + public R refreshPickOrder(@RequestBody IssureNotifyEntity issureNotifyEntity) { + issureNotifyService.refreshPickOrder(issureNotifyEntity); + return R.ok(); + } + + /** + * @Description 取消提货单预留 + * @Title pickOrderCancelReservation + * @param issureNotifyEntity + * @author jiayang_yue + * @data 2025/4/7 18:18 + * @return com.srq.common.utils.R + **/ + @PostMapping("/pickOrderCancelReservation") + @ResponseBody + public R pickOrderCancelReservation(@RequestBody IssureNotifyEntity issureNotifyEntity) { + issureNotifyService.pickOrderCancelReservation(issureNotifyEntity); + return R.ok(); + } } diff --git a/src/main/java/com/srq/modules/orderIssure/service/IssureNotifyService.java b/src/main/java/com/srq/modules/orderIssure/service/IssureNotifyService.java index 17c1394..b475432 100644 --- a/src/main/java/com/srq/modules/orderIssure/service/IssureNotifyService.java +++ b/src/main/java/com/srq/modules/orderIssure/service/IssureNotifyService.java @@ -20,4 +20,10 @@ public interface IssureNotifyService { List queryPickDetail(ProductionWarehousingEntity params); List getBillLadingDetail(IssureNotifyEntity issureNotifyEntity); + + void createBillLadingSummary(IssureNotifyEntity issureNotifyEntity); + + void refreshPickOrder(IssureNotifyEntity issureNotifyEntity); + + void pickOrderCancelReservation(IssureNotifyEntity issureNotifyEntity); } diff --git a/src/main/java/com/srq/modules/orderIssure/service/impl/IssureNotifyServiceImpl.java b/src/main/java/com/srq/modules/orderIssure/service/impl/IssureNotifyServiceImpl.java index 2118384..f28f1b2 100644 --- a/src/main/java/com/srq/modules/orderIssure/service/impl/IssureNotifyServiceImpl.java +++ b/src/main/java/com/srq/modules/orderIssure/service/impl/IssureNotifyServiceImpl.java @@ -186,4 +186,51 @@ public class IssureNotifyServiceImpl implements IssureNotifyService { } return issureNotifyList; } + + @Override + public void createBillLadingSummary(IssureNotifyEntity issureNotifyEntity) { + ProductionWarehousingEntity productionWarehousingEntity = new ProductionWarehousingEntity(); + productionWarehousingEntity.setContract(issureNotifyEntity.getSite()); + productionWarehousingEntity.setPickListNo(issureNotifyEntity.getIfsPickListNo()); + productionWarehousingEntity.setStatus(issureNotifyEntity.getStatus()); + + String createBillLadingSummary = apiUrl + "/order/pickOrderSummary"; + ResponseData createBillLadingSummaryResponse = HttpClientUtil.doPostByRawWithSRQ(createBillLadingSummary, + productionWarehousingEntity); + if (!"200".equals(createBillLadingSummaryResponse.getCode())) { + throw new RuntimeException("创建提货单汇总失败" + + createBillLadingSummaryResponse.getMsg()); + } + } + + @Override + public void refreshPickOrder(IssureNotifyEntity issureNotifyEntity) { + ProductionWarehousingEntity productionWarehousingEntity = new ProductionWarehousingEntity(); + productionWarehousingEntity.setContract(issureNotifyEntity.getSite()); + productionWarehousingEntity.setPickListNo(issureNotifyEntity.getIfsPickListNo()); + productionWarehousingEntity.setStatus(""); + + String refreshPickOrder = apiUrl + "/order/refreshPickOrderSummary"; + ResponseData refreshPickOrderResponse = HttpClientUtil.doPostByRawWithSRQ(refreshPickOrder, + productionWarehousingEntity); + if (!"200".equals(refreshPickOrderResponse.getCode())) { + throw new RuntimeException("刷新提货单失败" + + refreshPickOrderResponse.getMsg()); + } + } + + @Override + public void pickOrderCancelReservation(IssureNotifyEntity issureNotifyEntity) { + ProductionWarehousingEntity productionWarehousingEntity = new ProductionWarehousingEntity(); + productionWarehousingEntity.setContract(issureNotifyEntity.getSite()); + productionWarehousingEntity.setPickListNo(issureNotifyEntity.getIfsPickListNo()); + + String pickOrderCancelReservation = apiUrl + "/order/pickOrderCancelReservation"; + ResponseData pickOrderCancelReservationResponse = HttpClientUtil.doPostByRawWithSRQ(pickOrderCancelReservation, + productionWarehousingEntity); + if (!"200".equals(pickOrderCancelReservationResponse.getCode())) { + throw new RuntimeException("取消提货单预留失败" + + pickOrderCancelReservationResponse.getMsg()); + } + } }