|
@ -58,6 +58,9 @@ public class WarehouseStorageOrderServiceImpl implements IWarehouseStorageOrderS |
|
|
@Autowired |
|
|
@Autowired |
|
|
private RedisCache redisCache; |
|
|
private RedisCache redisCache; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private QualityOrderDetailMapper qualityOrderDetailMapper; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 查询仓库入库单 |
|
|
* 查询仓库入库单 |
|
|
* |
|
|
* |
|
@ -414,9 +417,11 @@ public class WarehouseStorageOrderServiceImpl implements IWarehouseStorageOrderS |
|
|
warehouseStorageOrder.setCreateBy(loginName); |
|
|
warehouseStorageOrder.setCreateBy(loginName); |
|
|
warehouseStorageOrder.setQualityTime(new Date()); |
|
|
warehouseStorageOrder.setQualityTime(new Date()); |
|
|
warehouseStorageOrder.setCreateTime(new Date()); |
|
|
warehouseStorageOrder.setCreateTime(new Date()); |
|
|
|
|
|
//设置委内完成数总价
|
|
|
|
|
|
warehouseStorageOrder.setMakeInTotalPrice(tempQualityOrder.getMakeInTotalPrice()); |
|
|
//插入入库单详情数据
|
|
|
//插入入库单详情数据
|
|
|
for (QualityOrderDetail qualityOrderDetail : qualityOrderDetailList) { |
|
|
for (QualityOrderDetail qualityOrderDetail : qualityOrderDetailList) { |
|
|
|
|
|
|
|
|
WarehouseStorageOrderDetail warehouseStorageOrderDetail = new WarehouseStorageOrderDetail(); |
|
|
WarehouseStorageOrderDetail warehouseStorageOrderDetail = new WarehouseStorageOrderDetail(); |
|
|
warehouseStorageOrderDetail.setWarehouseStorageCode(warehouseStorageCode); |
|
|
warehouseStorageOrderDetail.setWarehouseStorageCode(warehouseStorageCode); |
|
|
warehouseStorageOrderDetail.setRelatedOrderCode(tempQualityOrder.getRelatedOrderCode()); |
|
|
warehouseStorageOrderDetail.setRelatedOrderCode(tempQualityOrder.getRelatedOrderCode()); |
|
@ -426,6 +431,8 @@ public class WarehouseStorageOrderServiceImpl implements IWarehouseStorageOrderS |
|
|
warehouseStorageOrderDetail.setWarehouseOrderType("1"); |
|
|
warehouseStorageOrderDetail.setWarehouseOrderType("1"); |
|
|
//当作委内入库数
|
|
|
//当作委内入库数
|
|
|
warehouseStorageOrderDetail.setMakeStorageNum(qualityOrderDetail.getMakeInNum()); |
|
|
warehouseStorageOrderDetail.setMakeStorageNum(qualityOrderDetail.getMakeInNum()); |
|
|
|
|
|
//设置委内加工费单价
|
|
|
|
|
|
warehouseStorageOrderDetail.setMakeInUnitPrice(qualityOrderDetail.getMakeInUnitPrice()); |
|
|
warehouseStorageOrderDetail.setMaterialNo(qualityOrderDetail.getMaterialNo()); |
|
|
warehouseStorageOrderDetail.setMaterialNo(qualityOrderDetail.getMaterialNo()); |
|
|
warehouseStorageOrderDetail.setMaterialName(qualityOrderDetail.getMaterialName()); |
|
|
warehouseStorageOrderDetail.setMaterialName(qualityOrderDetail.getMaterialName()); |
|
|
warehouseStorageOrderDetail.setMaterialBrand(qualityOrderDetail.getMaterialBrand()); |
|
|
warehouseStorageOrderDetail.setMaterialBrand(qualityOrderDetail.getMaterialBrand()); |
|
|