opt: 错误看板信息
This commit is contained in:
@@ -426,6 +426,7 @@ public class AutoCallAirShaftTask extends Prun {
|
||||
// 需要区分上下
|
||||
List<BstIvtShafttubeivt> shafttubeivts = bstIvtShafttubeivtService.getByQzzSize(qzzSize ,empty.getPoint_code(), location);
|
||||
if (shafttubeivts.size() == 0) {
|
||||
stepErrorInfo.add("气胀轴库找不到[" + qzzSize + "]规格的气涨轴位");
|
||||
log.error("气胀轴库找不到[" + qzzSize + "]规格的气涨轴位");
|
||||
return false;
|
||||
}
|
||||
@@ -440,6 +441,7 @@ public class AutoCallAirShaftTask extends Prun {
|
||||
device_obj.put("product_area", "B1");
|
||||
JSONObject pointStatus = wmsToAcsService.getPointStatus(device_rows);
|
||||
if (ObjectUtil.isEmpty(pointStatus) || ObjectUtil.isEmpty(pointStatus.getJSONArray("data"))) {
|
||||
stepErrorInfo.add("获取气胀轴库信息失败...");
|
||||
log.error("获取气胀轴库信息失败");
|
||||
return false;
|
||||
}
|
||||
@@ -447,6 +449,7 @@ public class AutoCallAirShaftTask extends Prun {
|
||||
boolean judgment2 = true;
|
||||
JSONObject data2 = pointStatus.getJSONArray("data").getJSONObject(0);
|
||||
if (data2.getInteger("qty") == 0) {
|
||||
stepErrorInfo.add("气胀轴库【" + shafttubeivt.getPoint_code() + "】没有气胀轴。");
|
||||
log.warn("气胀轴库【" + shafttubeivt.getPoint_code() + "】没有气胀轴。");
|
||||
judgment1 = false;
|
||||
}
|
||||
@@ -454,6 +457,7 @@ public class AutoCallAirShaftTask extends Prun {
|
||||
List<BstIvtShafttubeivt> qzzCache = bstIvtShafttubeivtService.getNotTaskShaftCache(qzzSize,
|
||||
shafttubeivt.getQzz_generation(), location);
|
||||
if (qzzCache.size() == 0) {
|
||||
stepErrorInfo.add("未找到气胀轴密集库气涨轴规格「" + qzzSize + "」的暂存位");
|
||||
log.warn("未找到气胀轴密集库气涨轴规格「" + qzzSize + "」的暂存位");
|
||||
judgment2 = false;
|
||||
}
|
||||
@@ -465,6 +469,7 @@ public class AutoCallAirShaftTask extends Prun {
|
||||
log.info("查找可以拔轴的点位数:{}", qzzPoint.size());
|
||||
if (!judgment1 && !judgment2 && qzzPoint.size() == 0) {
|
||||
log.warn("都没有气胀轴");
|
||||
stepErrorInfo.add("已经没有空气胀轴了...");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user