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