opt: 提示

This commit is contained in:
2025-06-13 10:27:18 +08:00
parent 0530a9fab8
commit c641eedbf3

View File

@@ -236,7 +236,8 @@ public class AutoCallAirShaftTask extends Prun {
if (ObjectUtil.isEmpty(tzOKPlans)) { if (ObjectUtil.isEmpty(tzOKPlans)) {
stepStr += ",13"; stepStr += ",13";
log.info("计划找不到"); log.info("计划找不到");
stepErrorInfo.add("找不到气胀轴:" + qzzs + "对应的计划。"); List<String> collect = halfPlacePoint.stream().map(BstIvtCutpointivt::getPoint_code).collect(Collectors.toList());
stepErrorInfo.add("找不到气胀[" + qzzs + "]对应的计划。请检查点位" + collect);
return; return;
} }
PdmBiSlittingproductionplan oneTzOkPlan = tzOKPlans.get(0); PdmBiSlittingproductionplan oneTzOkPlan = tzOKPlans.get(0);
@@ -266,7 +267,7 @@ public class AutoCallAirShaftTask extends Prun {
.orElse(null); .orElse(null);
if (planDto == null) { if (planDto == null) {
log.warn("过滤3/6寸和代数输出结果为空跳过此次套轴直接拔轴。此时点位对应代数{}", specification); log.warn("过滤3/6寸和代数输出结果为空跳过此次套轴直接拔轴。此时点位对应代数{}", specification);
stepErrorInfo.add("过滤3/6寸和代数输出结果为空跳过此次套轴直接拔轴。此时点位对应代数{}" + specification); stepErrorInfo.add("过滤3/6寸和代数输出结果为空跳过此次套轴直接拔轴。此时点位对应代数[" + specification + "]");
// 如果不需要套轴,就只做拔轴 // 如果不需要套轴,就只做拔轴
makePullShaft(empty, specification); makePullShaft(empty, specification);
return; return;
@@ -392,7 +393,7 @@ public class AutoCallAirShaftTask extends Prun {
startPoint.setRemark("气胀轴" + oldQzzNo + "的计划不存在,无效点位自动禁用。"); startPoint.setRemark("气胀轴" + oldQzzNo + "的计划不存在,无效点位自动禁用。");
startPoint.setUpdate_time(DateUtil.now()); startPoint.setUpdate_time(DateUtil.now());
bcutpointivtService.updateById(startPoint); bcutpointivtService.updateById(startPoint);
stepErrorInfo.add("当前气胀轴编码{" + oldQzzNo + "},找不到对应的计划, 点位" + startPoint.getPoint_code() + "已被禁用。"); stepErrorInfo.add("当前气胀轴编码{" + oldQzzNo + "},找不到对应的计划, 点位" + startPoint.getPoint_code() + "已被系统禁用。");
return; return;
} }
// 保存所需要的分切计划数据到点位上(套轴对接位)更新分切计划 // 保存所需要的分切计划数据到点位上(套轴对接位)更新分切计划
@@ -428,7 +429,7 @@ public class AutoCallAirShaftTask extends Prun {
// 需要区分上下 // 需要区分上下
List<BstIvtShafttubeivt> shafttubeivts = bstIvtShafttubeivtService.getByQzzSize(qzzSize ,empty.getPoint_code(), location); List<BstIvtShafttubeivt> shafttubeivts = bstIvtShafttubeivtService.getByQzzSize(qzzSize ,empty.getPoint_code(), location);
if (shafttubeivts.size() == 0) { if (shafttubeivts.size() == 0) {
stepErrorInfo.add("气胀轴库找不到[" + qzzSize + "]规格的气涨轴位"); stepErrorInfo.add("气胀轴库找不到[" + qzzSize + "]规格的气涨轴位,此次不为[" + planD.getResource_name() + "]套轴");
log.error("气胀轴库找不到[" + qzzSize + "]规格的气涨轴位"); log.error("气胀轴库找不到[" + qzzSize + "]规格的气涨轴位");
return false; return false;
} }
@@ -443,7 +444,7 @@ public class AutoCallAirShaftTask extends Prun {
device_obj.put("product_area", "B1"); device_obj.put("product_area", "B1");
JSONObject pointStatus = wmsToAcsService.getPointStatus(device_rows); JSONObject pointStatus = wmsToAcsService.getPointStatus(device_rows);
if (ObjectUtil.isEmpty(pointStatus) || ObjectUtil.isEmpty(pointStatus.getJSONArray("data"))) { if (ObjectUtil.isEmpty(pointStatus) || ObjectUtil.isEmpty(pointStatus.getJSONArray("data"))) {
stepErrorInfo.add("获取气胀轴库信息失败..."); stepErrorInfo.add("获取气胀轴库信息失败...此次不为[" + planD.getResource_name() + "]套轴");
log.error("获取气胀轴库信息失败"); log.error("获取气胀轴库信息失败");
return false; return false;
} }
@@ -471,7 +472,7 @@ public class AutoCallAirShaftTask extends Prun {
log.info("查找可以拔轴的点位数:{}", qzzPoint.size()); log.info("查找可以拔轴的点位数:{}", qzzPoint.size());
if (!judgment1 && !judgment2 && qzzPoint.size() == 0) { if (!judgment1 && !judgment2 && qzzPoint.size() == 0) {
log.warn("都没有气胀轴"); log.warn("都没有气胀轴");
stepErrorInfo.add("已经没有空气胀轴了..."); stepErrorInfo.add("已经没有空气胀轴了,此次不为[" + planD.getResource_name() + "]套轴。");
return false; return false;
} }
return true; return true;
@@ -897,7 +898,7 @@ public class AutoCallAirShaftTask extends Prun {
return true; return true;
} }
stepStr += ",4"; stepStr += ",4";
stepErrorInfo.add(">>>穿拔轴机" + shafttubeivt.getPoint_code() + "已经在为" + dto.getResource_name() + "套轴了..."); stepErrorInfo.add("穿拔轴机" + shafttubeivt.getPoint_code() + "已经在为" + dto.getResource_name() + "套轴了...");
return false; return false;
} }
} }