Browse Source

[fix] 仓库管理 品质管理

修改暂收的时候 添加实际已到货数字段,添加暂收已合格数字段
修改 品质的时候添加 品质已合格数字段
修改 入库的时候 添加已入库数字段
dev
liuxiaoxu 5 months ago
parent
commit
7846d4be60
  1. 3
      ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityOrderReportServiceImpl.java
  2. 6
      ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseStorageOrderServiceImpl.java

3
ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityOrderReportServiceImpl.java

@ -126,7 +126,8 @@ public class QualityOrderReportServiceImpl implements IQualityOrderReportService
} }
//更新品质报告详情中的品质合格数的数据 //更新品质报告详情中的品质合格数的数据
qualityOrderDetail.setQualityQualifiedNum(qualityQualifiedNum); qualityOrderDetail.setQualityQualifiedNum(qualityQualifiedNum);
//更新品质已合格数
qualityOrderDetail.setQualityHasqualifiedNum(qualityQualifiedNum);
//获得品质报告中的不合格数模块数据 //获得品质报告中的不合格数模块数据
List<QualityOrderReportUnqualified> unqualifiedDataList = qualityOrderReport.getUnqualifiedDataList(); List<QualityOrderReportUnqualified> unqualifiedDataList = qualityOrderReport.getUnqualifiedDataList();

6
ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseStorageOrderServiceImpl.java

@ -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("暂收合格数要小于等于实际到货数");
} }

Loading…
Cancel
Save