Browse Source

04.08 生产入库

领料申请 - 提货单明细汇总导出、刷新提货单、取消预留
仓库发料
master
jiayang yue 9 months ago
parent
commit
e85f49c231
  1. 45
      src/main/java/com/srq/modules/orderIssure/controller/IssureNotifyController.java
  2. 6
      src/main/java/com/srq/modules/orderIssure/service/IssureNotifyService.java
  3. 47
      src/main/java/com/srq/modules/orderIssure/service/impl/IssureNotifyServiceImpl.java

45
src/main/java/com/srq/modules/orderIssure/controller/IssureNotifyController.java

@ -89,4 +89,49 @@ public class IssureNotifyController {
List<ProductionWarehousingEntity> 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();
}
}

6
src/main/java/com/srq/modules/orderIssure/service/IssureNotifyService.java

@ -20,4 +20,10 @@ public interface IssureNotifyService {
List<PickDetail> queryPickDetail(ProductionWarehousingEntity params);
List<ProductionWarehousingEntity> getBillLadingDetail(IssureNotifyEntity issureNotifyEntity);
void createBillLadingSummary(IssureNotifyEntity issureNotifyEntity);
void refreshPickOrder(IssureNotifyEntity issureNotifyEntity);
void pickOrderCancelReservation(IssureNotifyEntity issureNotifyEntity);
}

47
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());
}
}
}
Loading…
Cancel
Save