|
@ -364,6 +364,8 @@ public class WarehouseStorageOrderServiceImpl implements IWarehouseStorageOrderS |
|
|
//更新入库单详情的数据
|
|
|
//更新入库单详情的数据
|
|
|
warehouseStorageOrderDetail.setUpdateBy(loginName); |
|
|
warehouseStorageOrderDetail.setUpdateBy(loginName); |
|
|
warehouseStorageOrderDetail.setUpdateTime(new Date()); |
|
|
warehouseStorageOrderDetail.setUpdateTime(new Date()); |
|
|
|
|
|
//更新已入库数
|
|
|
|
|
|
warehouseStorageOrderDetail.setHasStorageNum(warehouseStorageOrderDetail.getStorageNum()); |
|
|
int updateWarehouseStorageOrderDetailResult = storageOrderDetailMapper.updateWarehouseStorageOrderDetail(warehouseStorageOrderDetail); |
|
|
int updateWarehouseStorageOrderDetailResult = storageOrderDetailMapper.updateWarehouseStorageOrderDetail(warehouseStorageOrderDetail); |
|
|
if (updateWarehouseStorageOrderDetailResult <= 0){ |
|
|
if (updateWarehouseStorageOrderDetailResult <= 0){ |
|
|
throw new BusinessException("更新仓库入库单详情失败,未影响任何行"); |
|
|
throw new BusinessException("更新仓库入库单详情失败,未影响任何行"); |
|
@ -401,6 +403,10 @@ public class WarehouseStorageOrderServiceImpl implements IWarehouseStorageOrderS |
|
|
detail.setWarehouseStorageCode(warehouseStorageOrder.getWarehouseStorageCode()); |
|
|
detail.setWarehouseStorageCode(warehouseStorageOrder.getWarehouseStorageCode()); |
|
|
Integer actualArriveNum = detail.getActualArriveNum(); |
|
|
Integer actualArriveNum = detail.getActualArriveNum(); |
|
|
Integer temporaryQualifiedNum = detail.getTemporaryQualifiedNum(); |
|
|
Integer temporaryQualifiedNum = detail.getTemporaryQualifiedNum(); |
|
|
|
|
|
//添加实际已到货数
|
|
|
|
|
|
detail.setActualHasArrivedNum(actualArriveNum); |
|
|
|
|
|
//添加暂收已合格数
|
|
|
|
|
|
detail.setTemporaryHasQualifiedNum(temporaryQualifiedNum); |
|
|
if (actualArriveNum < temporaryQualifiedNum){ |
|
|
if (actualArriveNum < temporaryQualifiedNum){ |
|
|
throw new BusinessException("暂收合格数要小于等于实际到货数"); |
|
|
throw new BusinessException("暂收合格数要小于等于实际到货数"); |
|
|
} |
|
|
} |
|
|