|
@@ -907,6 +907,21 @@ public class StackingAndLoadingVehiclesServiceImpl extends ServiceImpl<StackingA
|
|
|
List<BilletHotsendAbandons> billetHotsendAbandonsList = new ArrayList<>();
|
|
|
// 2 发车后,动态更新容器中的垛位信息 初始化
|
|
|
stackingAndLoadingVehiclesList.forEach(x ->{
|
|
|
+ // 叛废后,动态更新容器中的垛位信息 初始化
|
|
|
+ LambdaUpdateWrapper<StackingAndLoadingVehicles> updateWrapper = new LambdaUpdateWrapper();
|
|
|
+ updateWrapper.eq(StackingAndLoadingVehicles::getId, x.getId())
|
|
|
+ .set(StackingAndLoadingVehicles::getBilletNos, null)
|
|
|
+ .set(StackingAndLoadingVehicles::getSpec, null)
|
|
|
+ .set(StackingAndLoadingVehicles::getSteel, null)
|
|
|
+ .set(StackingAndLoadingVehicles::getSize, null)
|
|
|
+ .set(StackingAndLoadingVehicles::getShift, null)
|
|
|
+ .set(StackingAndLoadingVehicles::getHeatNo, null)
|
|
|
+ .set(StackingAndLoadingVehicles::getCreateDate, null)
|
|
|
+ .set(StackingAndLoadingVehicles::getShiftGroup, null);
|
|
|
+ StackingAndLoadingVehicles stackingAndLoadingVehicles = new StackingAndLoadingVehicles();
|
|
|
+ BeanUtils.copyProperties(x, stackingAndLoadingVehicles);
|
|
|
+ stackingAndLoadingVehiclesMapper.update(stackingAndLoadingVehicles, updateWrapper);
|
|
|
+
|
|
|
// 拆分四个钢坯集,组成叛废记录
|
|
|
List<String> sizeList = Arrays.asList(x.getSize().split(","));
|
|
|
List<String> billetNosList = Arrays.asList(x.getBilletNos().split(","));
|
|
@@ -934,6 +949,7 @@ public class StackingAndLoadingVehiclesServiceImpl extends ServiceImpl<StackingA
|
|
|
if (oConvertUtils.isNotEmpty(idExistBh)){
|
|
|
log.info("{}{}", ">>>>>更新钢坯热送基础信息叛废支数:", JSON.toJSON(idExistBh));
|
|
|
idExistBh.setWasteNum(oConvertUtils.isEmpty(idExistBh.getWasteNum()) ? 4 : idExistBh.getWasteNum() + 4);
|
|
|
+ idExistBh.setStackNum(idExistBh.getStackNum() - 4);
|
|
|
idExistBh.setUpdateTime(new Date());
|
|
|
billetHotsendBaseService.updateById(idExistBh);
|
|
|
}
|