|
@@ -287,6 +287,21 @@ public class StackingAndLoadingVehiclesServiceImpl extends ServiceImpl<StackingA
|
|
|
.isNull(BilletBasicInfo::getBelongTable)
|
|
|
.isNull(BilletBasicInfo::getBhtcId);
|
|
|
List<BilletBasicInfo> billetBasicInfoLists = billetBasicInfoService.list(queryWrapperBB);
|
|
|
+ if (oConvertUtils.listIsEmpty(billetBasicInfoLists)){
|
|
|
+ // 循环三次处理
|
|
|
+ for (int i = 0; i < 3; i++) {
|
|
|
+ // 延迟10秒
|
|
|
+ try {
|
|
|
+ Thread.sleep(10000);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ billetBasicInfoLists = billetBasicInfoService.list(queryWrapperBB);
|
|
|
+ if (!oConvertUtils.listIsEmpty(billetBasicInfoLists)){
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
if (oConvertUtils.listIsEmpty(billetBasicInfoLists)){
|
|
|
log.info("{}{}", "钢坯基础信息为空,C端自动化新增堆垛失败!", jsonObject);
|
|
|
BilletAutoException billetAutoException = createBilletAutoException(ccmNo, allBilletNos, shiftGroupHandle(ccmNo), shiftHandle(ccmNo), billetHotsendTypeConfig.getTypeName(), null, null, null, null);
|