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()); + } + } }