opt:优化代码
This commit is contained in:
@@ -232,7 +232,7 @@ public class AutoCallAirShaftTask {
|
||||
// update: 不需要(同标箔或者锂电分开)
|
||||
// todo: 需要校验区域0/1
|
||||
List<BstIvtCutpointivt> qzzPoint = bcutpointivtService.getPointByTypeAndShaftSize("1", qzzSize, specification);
|
||||
if (qzzPoint.size() == 0) {
|
||||
if (qzzPoint.size() == 0) {//若套轴暂存位没有相同规格的气胀轴,直接去气胀轴库找即可
|
||||
// 调用ACS滚条气涨轴下来
|
||||
if (!toAcsOutShaft(qzzSize,location, empty)) {
|
||||
log.error("穿拔轴{}不进行套轴,跳过!", empty.getPoint_code());
|
||||
@@ -245,18 +245,6 @@ public class AutoCallAirShaftTask {
|
||||
}
|
||||
// 查找一条没任务的点位
|
||||
BstIvtCutpointivt startPoint = qzzPoint.get(0);
|
||||
if (ObjectUtil.isEmpty(startPoint)) {
|
||||
// 保存所需要的分切计划数据到点位上(套轴对接位)更新分切计划
|
||||
saveCutPlanMessage(empty, needPlans, qzzSize);
|
||||
// 如果不存在,则发起信号滚气涨轴
|
||||
// 调用ACS滚条气涨轴下来
|
||||
if (!toAcsOutShaft(qzzSize, location, empty)) {
|
||||
log.error("穿拔轴{}不进行套轴,跳过!", empty.getPoint_code());
|
||||
return;
|
||||
}
|
||||
toCallAgvMovePaperTube(needPlans, location, empty);
|
||||
return;
|
||||
}
|
||||
// 创建任务
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("point_code1", ObjectUtil.isNotEmpty(startPoint.getQzz_no1())
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
package org.nl.b_lms.sch.tasks.slitter.auto;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.b_lms.sch.tasks.slitter.SlitterDownAgvTask;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @Author: lyd
|
||||
* @Description:
|
||||
* @Date: 2024/2/1
|
||||
*/
|
||||
@Deprecated
|
||||
@Slf4j
|
||||
@Component
|
||||
public class AutoSendShaftCacheAgvTask {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user