|
@@ -668,18 +668,10 @@ public class StackingAndLoadingVehiclesServiceImpl extends ServiceImpl<StackingA
|
|
|
billetBasicInfoService.saveOrUpdateBatch(billetBasicInfoList);
|
|
|
// 6 更新装运单 storage_bill 新增储运信息
|
|
|
StorageBill storageBill = loadingParams.getStorageBill();
|
|
|
- LambdaQueryWrapper<StorageBill> queryWrapperSB = new LambdaQueryWrapper<>();
|
|
|
- queryWrapperSB.eq(StorageBill::getCcmNo, storageBill.getCcmNo())
|
|
|
- .eq(StorageBill::getShift, finalCacheShint1)
|
|
|
- .eq(StorageBill::getShiftGroup, finalCacheShintGroup1)
|
|
|
- .eq(StorageBill::getLicensePlate, storageBill.getLicensePlate());
|
|
|
- List<StorageBill> storageBillList = storageBillService.list(queryWrapperSB);
|
|
|
- storageBill.setCarNum(oConvertUtils.listIsEmpty(storageBillList) ? 0 : storageBillList.size() + 1);// 本车车次
|
|
|
storageBill.setTypeConfigId(loadingParams.getBilletHotsendTypeConfigId()); // 钢坯配置类型ID
|
|
|
storageBill.setDestination(loadingParams.getStorageBill().getDestination());// 目的地
|
|
|
storageBill.setAmountTotal(storageBill.getAmountTotal() + stackingAndLoadingVehiclesList.size() * 4);
|
|
|
storageBill.setOutTime(new Date());
|
|
|
- storageBill.setCarAllNum(storageBillService.list().size() + 1);
|
|
|
storageBillService.updateById(storageBill);
|
|
|
// 7 发车后,新增钢坯堆垛储运信息,生成储运单 storage_car_log
|
|
|
StorageCarLog storageCarLog = new StorageCarLog();
|