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