|
@@ -551,6 +551,10 @@ public class StackingAndLoadingVehiclesServiceImpl extends ServiceImpl<StackingA
|
|
|
x.setUpdateTime(new Date());
|
|
|
});
|
|
|
billetBasicInfoService.saveOrUpdateBatch(billetBasicInfoList);
|
|
|
+ // 取最新的第一条钢坯信息
|
|
|
+ RollClubCommon rollClubCommon = rollClubCommonList.stream().findFirst().orElse(null);
|
|
|
+ storageBill.setSteel(rollClubCommon.getGrade());//钢种
|
|
|
+ storageBill.setSpec(rollClubCommon.getSpec());//规格
|
|
|
storageBill.setAmountTotal((oConvertUtils.isNotEmpty(storageBill.getAmountTotal()) ? storageBill.getAmountTotal() : 0) + stackingAndLoadingVehiclesList.size() * 4);
|
|
|
storageBill.setDestination(loadingParams.getDestination());
|
|
|
storageBill.setTypeConfigId(loadingParams.getDestinationId());
|
|
@@ -785,7 +789,11 @@ public class StackingAndLoadingVehiclesServiceImpl extends ServiceImpl<StackingA
|
|
|
count = rollOutShippDetailsList.stream().count();
|
|
|
}
|
|
|
}
|
|
|
- // 6 更新装运单 storage_bill 新增储运信息
|
|
|
+ // 6 更新装运单 storage_bill
|
|
|
+ // 取最新的第一条钢坯信息更新钢种和规格
|
|
|
+ RollClubCommon rollClubCommon = rollClubCommonList.stream().findFirst().orElse(null);
|
|
|
+ storageBill.setSteel(rollClubCommon.getGrade());//钢种
|
|
|
+ storageBill.setSpec(rollClubCommon.getSpec());//规格
|
|
|
storageBill.setSize(String.join(",", sizeList));
|
|
|
storageBill.setTypeConfigId(loadingParams.getDestinationId()); // 钢坯配置类型ID
|
|
|
storageBill.setDestination(loadingParams.getDestination());// 目的地
|