|
@@ -280,6 +280,36 @@ public class BilletHotsendBaseServiceImpl extends ServiceImpl<BilletHotsendBaseM
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ String shiftGroup = shiftGroupHandle(ccmNo);
|
|
|
+ String shift = shiftHandle(ccmNo);
|
|
|
+ log.info("C端自动化热装缓存中的班组、班别:{}", shiftGroup + ":" + shift);
|
|
|
+ if (oConvertUtils.isEmpty(shiftGroup) || oConvertUtils.isEmpty(shift)){
|
|
|
+ log.info("{}{}", "班组班别获取为空,C端自动化热装<保存>失败!", JSON.toJSON(jsonObject));
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ BilletLiftingBill billetLiftingBill = new BilletLiftingBill();
|
|
|
+ // 独立保存行车吊运单
|
|
|
+ billetLiftingBill.setId(String.valueOf(IdWorker.getId()));
|
|
|
+ billetLiftingBill.setCcmNo(ccmNo);
|
|
|
+ billetLiftingBill.setBilletsNo(billetNos);
|
|
|
+ billetLiftingBill.setShiftGroup(shiftGroup);
|
|
|
+ billetLiftingBill.setShift(shift);
|
|
|
+ billetLiftingBill.setVehicleNumber(jsonObject.getString("vehicleNumber"));
|
|
|
+ billetLiftingBill.setLocation(location);
|
|
|
+ billetLiftingBill.setAddress(address);
|
|
|
+ billetLiftingBill.setLiftingType("1");
|
|
|
+ billetLiftingBill.setBelongType("1");
|
|
|
+ billetLiftingBill.setDestination(destination);
|
|
|
+ billetLiftingBill.setLayer(layer);
|
|
|
+ billetLiftingBill.setPositionNum(Integer.valueOf(positionNum));
|
|
|
+ billetLiftingBill.setPlateOrStack(plateOrStack);
|
|
|
+ if (oConvertUtils.isNotEmpty(liftingTime)){
|
|
|
+ billetLiftingBill.setLiftingTime(DateUtils.str2Date(liftingTime, DateUtils.datetimeFormat.get()));
|
|
|
+ }
|
|
|
+ billetLiftingBill.setRemark("热装吊运单");
|
|
|
+ billetLiftingBill.setBilletWeight(0.00);
|
|
|
+ saveBilletLiftingBillsHotCharge(billetLiftingBill);
|
|
|
+ log.info("C端自动化热装保存吊运单成功: {}", billetLiftingBill.getBilletsNo());
|
|
|
// 首先查询钢坯装运单
|
|
|
LambdaQueryWrapper<StorageBill> queryWrapper2 = new LambdaQueryWrapper<>();
|
|
|
queryWrapper2.eq(StorageBill::getPositionNum, Integer.valueOf(positionNum))
|
|
@@ -314,22 +344,20 @@ public class BilletHotsendBaseServiceImpl extends ServiceImpl<BilletHotsendBaseM
|
|
|
.filter(num -> num.length() >= 9)
|
|
|
.map(num -> String.valueOf(num.charAt(8)))
|
|
|
.orElse("");
|
|
|
-
|
|
|
- log.info("C端自动化热装铸机号:{}", ccmNo);
|
|
|
- String shiftGroup = shiftGroupHandle(ccmNo);
|
|
|
- String shift = shiftHandle(ccmNo);
|
|
|
- // 更具装运单确认铸机号
|
|
|
- if (oConvertUtils.isNotEmpty(isStorageBill) && oConvertUtils.isEmpty(isStorageBill.getCcmNo())) {
|
|
|
+
|
|
|
+ log.info("C端自动化热装,钢坯中截取的铸机号:{}", ccmNo);
|
|
|
+ // 更新装运单铸机号、班别、班组
|
|
|
+ if ("0".equals(isStorageBill.getCcmNo())) {
|
|
|
// 更新铸机号,到装运单
|
|
|
isStorageBill.setCcmNo(ccmNo);
|
|
|
isStorageBill.setShiftGroup(shiftGroup);
|
|
|
isStorageBill.setShift(shift);
|
|
|
storageBillService.updateById(isStorageBill);
|
|
|
- }
|
|
|
- log.info("C端自动化缓存中的班组、班别:{}", shiftGroup + ":" + shift);
|
|
|
- if (oConvertUtils.isEmpty(shiftGroup) || oConvertUtils.isEmpty(shift)){
|
|
|
- log.info("{}{}", "班组班别获取为空,C端自动化热装<保存>失败!", JSON.toJSON(isStorageBill));
|
|
|
- return;
|
|
|
+ }else {
|
|
|
+ if (!isStorageBill.getCcmNo().equals(ccmNo)){
|
|
|
+ log.info("{}{}", ",铸机号与钢坯不一致,C端自动化热装<保存>失败!", JSON.toJSON(isStorageBill));
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
BilletHotsend billetHotsends = new BilletHotsend();
|
|
@@ -339,30 +367,6 @@ public class BilletHotsendBaseServiceImpl extends ServiceImpl<BilletHotsendBaseM
|
|
|
billetHotsends.setIsUpd(false);
|
|
|
billetHotsendDetailsVo.setBilletHotsend(billetHotsends);
|
|
|
|
|
|
- BilletLiftingBill billetLiftingBill = new BilletLiftingBill();
|
|
|
- // 独立保存行车吊运单
|
|
|
- billetLiftingBill.setId(String.valueOf(IdWorker.getId()));
|
|
|
- billetLiftingBill.setCcmNo(ccmNo);
|
|
|
- billetLiftingBill.setBilletsNo(billetNos);
|
|
|
- billetLiftingBill.setShiftGroup(shiftGroup);
|
|
|
- billetLiftingBill.setShift(shift);
|
|
|
- billetLiftingBill.setVehicleNumber(jsonObject.getString("vehicleNumber"));
|
|
|
- billetLiftingBill.setLocation(location);
|
|
|
- billetLiftingBill.setAddress(address);
|
|
|
- billetLiftingBill.setLiftingType("1");
|
|
|
- billetLiftingBill.setBelongType("1");
|
|
|
- billetLiftingBill.setDestination(destination);
|
|
|
- billetLiftingBill.setLayer(layer);
|
|
|
- billetLiftingBill.setPositionNum(Integer.valueOf(positionNum));
|
|
|
- billetLiftingBill.setPlateOrStack(plateOrStack);
|
|
|
- if (oConvertUtils.isNotEmpty(liftingTime)){
|
|
|
- billetLiftingBill.setLiftingTime(DateUtils.str2Date(liftingTime, DateUtils.datetimeFormat.get()));
|
|
|
- }
|
|
|
- billetLiftingBill.setRemark("热装吊运单");
|
|
|
- billetLiftingBill.setBilletWeight(0.00);
|
|
|
- log.info("C端自动化热装——吊运单信息: {}", JSON.toJSON(billetLiftingBill));
|
|
|
- saveBilletLiftingBillsHotCharge(billetLiftingBill);
|
|
|
- log.info("C端自动化热装保存吊运单成功: {}", billetLiftingBill.getBilletsNo());
|
|
|
// 根据坯号查询 对应的钢坯基础信息
|
|
|
String[] billetNosparts = billetNos.split(",");
|
|
|
//4 获取所有的坯号集合
|
|
@@ -445,7 +449,6 @@ public class BilletHotsendBaseServiceImpl extends ServiceImpl<BilletHotsendBaseM
|
|
|
billetHotsendDetailsVo.setBelongTypeName(billetHotsendTypeConfig.getTypeName());
|
|
|
billetHotsendDetailsVo.setBilletHotsendTypeConfigId(billetHotsendTypeConfig.getId());
|
|
|
}
|
|
|
- log.info("555自动化热装数据组装: {}", billetHotsendDetailsVo.getBilletHotsendTypeConfigId());
|
|
|
List<RollClubCommon> rollClubCommonLists= new ArrayList<>();
|
|
|
AtomicInteger startNum = new AtomicInteger(0);
|
|
|
String finalCcmNo = ccmNo;
|