|
@@ -250,9 +250,11 @@ public class BilletHotsendBaseServiceImpl extends ServiceImpl<BilletHotsendBaseM
|
|
|
public void autoAddRodLine(JSONObject jsonObject) {
|
|
|
log.info("{}{}", "C端自动化轧钢外运<保存>参数:", jsonObject);
|
|
|
|
|
|
+
|
|
|
BilletHotsendDetailsVo billetHotsendDetailsVo = new BilletHotsendDetailsVo();
|
|
|
|
|
|
String ccmNo = jsonObject.getString("ccmNo");
|
|
|
+
|
|
|
String billetNos = jsonObject.getString("billetNos");
|
|
|
// String billetHotsendTypeConfigId = jsonObject.getString("billetHotsendTypeConfigId");
|
|
|
String licensePlate = jsonObject.getString("licensePlate");
|
|
@@ -269,6 +271,20 @@ public class BilletHotsendBaseServiceImpl extends ServiceImpl<BilletHotsendBaseM
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ // 首先查询钢坯装运单
|
|
|
+ LambdaQueryWrapper<StorageBill> queryWrapper2 = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper2.eq(StorageBill::getPositionNum, Integer.valueOf(positionNum))
|
|
|
+ .isNull(StorageBill::getOutTime);
|
|
|
+ // 2号车位不验证铸机号
|
|
|
+ if (!positionNum.equals("2")) {
|
|
|
+ queryWrapper2.eq(StorageBill::getCcmNo, ccmNo);
|
|
|
+ }
|
|
|
+ StorageBill isStorageBill = storageBillService.getOne(queryWrapper2);
|
|
|
+ // 更具装运单确认铸机号
|
|
|
+ if (oConvertUtils.isNotEmpty(isStorageBill) && oConvertUtils.isNotEmpty(isStorageBill.getCcmNo())) {
|
|
|
+ ccmNo = isStorageBill.getCcmNo();
|
|
|
+ }
|
|
|
+
|
|
|
String shiftGroup = shiftGroupHandle(ccmNo);
|
|
|
String shift = shiftHandle(ccmNo);
|
|
|
|
|
@@ -334,14 +350,7 @@ public class BilletHotsendBaseServiceImpl extends ServiceImpl<BilletHotsendBaseM
|
|
|
billetLiftingBillUpdate.setAssemblyNumber(getAssemblyNumber(billetBasicInfoLists));
|
|
|
billetLiftingBillService.updateById(billetLiftingBillUpdate);
|
|
|
}
|
|
|
-
|
|
|
- LambdaQueryWrapper<StorageBill> queryWrapper2 = new LambdaQueryWrapper<>();
|
|
|
- queryWrapper2.eq(StorageBill::getCcmNo, ccmNo)
|
|
|
- .eq(StorageBill::getPositionNum, Integer.valueOf(positionNum))
|
|
|
-// .eq(StorageBill::getShiftGroup, shiftGroup)
|
|
|
-// .eq(StorageBill::getShift, shift)
|
|
|
- .isNull(StorageBill::getOutTime);
|
|
|
- StorageBill isStorageBill = storageBillService.getOne(queryWrapper2);
|
|
|
+ // 钢坯装运单
|
|
|
if (oConvertUtils.isEmpty(isStorageBill)) {
|
|
|
log.info("未查询钢坯装运单信息,车位号为:{},C端自动化轧钢外运<保存>失败!", positionNum);
|
|
|
BilletAutoException billetAutoException = new BilletAutoException();
|