Browse Source

[fix] 仓库管理 品质管理

修改 品质完仓库入库单品质不合格数数据错误问题
新增 品质完更新仓库入库单的品质状态
dev
liuxiaoxu 5 months ago
parent
commit
541c086c8a
  1. 6
      ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityOrderServiceImpl.java
  2. 2
      ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseStorageOrderServiceImpl.java

6
ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityOrderServiceImpl.java

@ -202,9 +202,9 @@ public class QualityOrderServiceImpl implements IQualityOrderService
//如果品质时修改交检时间
tempQualityOrder.setDeliveryInspectionTime(qualityOrder.getDeliveryInspectionTime());
tempQualityOrder.setQualityQualifiedNum(thisArrivedNumSum);
tempQualityOrder.setQualityUnqualifiedNum(qualityQualifiedNumSum);
tempQualityOrder.setThisArrivedNum(qualityUnqualifiedNumSum);
tempQualityOrder.setQualityQualifiedNum(qualityQualifiedNumSum);
tempQualityOrder.setQualityUnqualifiedNum(qualityUnqualifiedNumSum);
tempQualityOrder.setThisArrivedNum(thisArrivedNumSum);
//采购订单,采购入库单品质完成后,数据生成到入库单中,后续进行入库操作
int updateStorageOrderResult = warehouseStorageOrderService.updateWarehouseStorageOrderByQualityOrder(tempQualityOrder, qualityOrderDetailList);

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

@ -199,6 +199,8 @@ public class WarehouseStorageOrderServiceImpl implements IWarehouseStorageOrderS
warehouseStorageOrder.setWarehouseStorageCode(qualityOrder.getInStorageCode());
//入库状态 为待入库
warehouseStorageOrder.setWarehouseStorageStatus("2");
//品质状态
warehouseStorageOrder.setWarehouseQualityStatus(qualityOrder.getQualityStatus());
//设置品质时间
warehouseStorageOrder.setQualityTime(qualityOrder.getDeliveryInspectionTime());
//设置品质合格数

Loading…
Cancel
Save