| | |
| | | package cn.iocoder.yudao.module.mes.service.wm.arrivalnotice; |
| | | |
| | | import cn.iocoder.yudao.module.erp.api.purchase.ErpPurchaseOrderAuditStatus; |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.util.ObjUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | |
| | | throw exception(WM_PURCHASE_ORDER_NOT_EXISTS); |
| | | } |
| | | |
| | | if (!Integer.valueOf(ErpPurchaseOrderAuditStatus.APPROVED).equals(purchaseOrder.getStatus())) { |
| | | throw exception(WM_PURCHASE_ORDER_NOT_APPROVED); |
| | | } |
| | | // 3. 获取采购订单明细 |
| | | List<ErpPurchaseOrderItemRespDTO> items = purchaseOrderApi.getPurchaseOrderItemList(purchaseOrderId).getCheckedData(); |
| | | if (CollUtil.isEmpty(items)) { |