|
@@ -167,7 +167,6 @@ public class BilletHotsendBaseController extends JeecgController<BilletHotsend,
|
|
|
billetHotsend.setIsUpd(false);
|
|
|
billetHotsendDetailsVo.setBilletHotsend(billetHotsend);
|
|
|
|
|
|
-
|
|
|
LambdaQueryWrapper<BilletBasicInfo> queryWrapper2 = new LambdaQueryWrapper<>();
|
|
|
queryWrapper2.eq(BilletBasicInfo::getCcmNo, hotChargeVo.getCcmNo())
|
|
|
.eq(BilletBasicInfo::getHeatNo, hotChargeVo.getHeatNo())
|
|
@@ -180,9 +179,9 @@ public class BilletHotsendBaseController extends JeecgController<BilletHotsend,
|
|
|
queryWrapper2.eq(BilletBasicInfo::getLength, hotChargeVo.getLength());
|
|
|
}
|
|
|
List<BilletBasicInfo> billetBasicInfoList = billetBasicInfoService.list(queryWrapper2);
|
|
|
- if (oConvertUtils.listIsEmpty(billetBasicInfoList)) {
|
|
|
- log.info("{}{}", "钢坯实绩不存在,热装操作失败!", JSON.toJSON(hotChargeVo));
|
|
|
- return Result.error("钢坯实绩不存在,热装操作失败!");
|
|
|
+ if (oConvertUtils.listIsEmpty(billetBasicInfoList) || billetBasicInfoList.size() < 4) {
|
|
|
+ log.info("{}{}", "钢坯实绩不存在或不足4支,热装操作失败!", JSON.toJSON(hotChargeVo));
|
|
|
+ return Result.error("钢坯实绩为空或不足4支,热装操作失败!");
|
|
|
}
|
|
|
log.info("{}{}", "推钢室操作工,<热装>操作:", JSON.toJSON(billetBasicInfoList));
|
|
|
List<RollClubCommon> rollClubCommonList = new ArrayList<>();
|
|
@@ -194,7 +193,11 @@ public class BilletHotsendBaseController extends JeecgController<BilletHotsend,
|
|
|
.stream()
|
|
|
.filter(entry -> entry.getValue().size() == 4)
|
|
|
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
|
|
|
-
|
|
|
+ if (groupByAssemblyNumber == null || groupByAssemblyNumber.isEmpty()) {
|
|
|
+ // 处理结果为空的情况(没有符合条件的分组)
|
|
|
+ log.info("{}{}", "热装-分组后钢坯可用信息为空:", JSON.toJSON(groupByAssemblyNumber));
|
|
|
+ return Result.error("分组可用钢坯为空,热装操作失败!");
|
|
|
+ }
|
|
|
// 获取第一个分组的第一条记录
|
|
|
Optional<BilletBasicInfo> firstBilletInfo = groupByAssemblyNumber.values().stream()
|
|
|
.filter(list -> !list.isEmpty())
|
|
@@ -227,6 +230,7 @@ public class BilletHotsendBaseController extends JeecgController<BilletHotsend,
|
|
|
if (jsonObject.containsKey("fail")) {
|
|
|
return Result.OK((String) jsonObject.get("fail"));
|
|
|
}
|
|
|
+ log.info(">>>>>>>>>>>>B端推钢室界面<热装>成功!");
|
|
|
return Result.OK((String) jsonObject.get("success"));
|
|
|
}
|
|
|
|