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