|
|
@ -1271,7 +1271,6 @@ public class PurchaseOrderServiceImpl implements IPurchaseOrderService |
|
|
|
}else { |
|
|
|
purchaseStorage.setNotifyArrivedSum(allNotifyHasArrivedNum + allNotifyArrivedNum); |
|
|
|
} |
|
|
|
purchaseStorage.setActualArrivedSum(allNotifyArrivedNum); |
|
|
|
int insertResult = purchaseStorageMapper.insertPurchaseStorage(purchaseStorage); |
|
|
|
if (insertResult <= 0){ |
|
|
|
throw new BusinessException("生成采购入库单数据失败"); |
|
|
@ -1298,7 +1297,6 @@ public class PurchaseOrderServiceImpl implements IPurchaseOrderService |
|
|
|
}else { |
|
|
|
warehouseStorageOrder.setNotifyArrivedNum(allNotifyHasArrivedNum + allNotifyArrivedNum); |
|
|
|
} |
|
|
|
warehouseStorageOrder.setActualArrivedNum(allNotifyArrivedNum); |
|
|
|
warehouseStorageOrder.setArrivedTime(purchaseOrder.getArrivedTime()); |
|
|
|
warehouseStorageOrder.setRelatedOrderCode(purchaseOrder.getPurchaseOrderCode()); |
|
|
|
warehouseStorageOrder.setCreateTime(new Date()); |
|
|
@ -1349,7 +1347,6 @@ public class PurchaseOrderServiceImpl implements IPurchaseOrderService |
|
|
|
}else { |
|
|
|
warehouseStorageOrderDetail.setNotifyHasArrivedNum(notifyHasArrivedNum + notifyArriveNum); |
|
|
|
} |
|
|
|
warehouseStorageOrderDetail.setActualArriveNum(notifyArriveNum); |
|
|
|
warehouseStorageOrderDetailChildren.add(warehouseStorageOrderDetail); |
|
|
|
} |
|
|
|
int result = warehouseStorageOrderDetailMapper.insertBatchWarehouseStorageOrderDetail(warehouseStorageOrderDetailChildren); |
|
|
@ -1398,7 +1395,6 @@ public class PurchaseOrderServiceImpl implements IPurchaseOrderService |
|
|
|
}else { |
|
|
|
purchaseStorageChild.setNotifyHasArrivedNum(notifyHasArrivedNum + notifyArriveNum); |
|
|
|
} |
|
|
|
purchaseStorageChild.setActualArriveNum(notifyArriveNum); |
|
|
|
purchaseStorageChildren.add(purchaseStorageChild); |
|
|
|
} |
|
|
|
int result = purchaseStorageChildMapper.insertBatchPurchaseStorageChild(purchaseStorageChildren); |
|
|
|