add:长短轴绑定问题

This commit is contained in:
ls
2025-03-20 17:53:05 +08:00
parent 6f3a02a55b
commit e38fcb7b88
4 changed files with 14 additions and 6 deletions

View File

@@ -30,8 +30,7 @@
SELECT point_code AS device_code,
product_area
FROM st_ivt_hotpointivt ivt
WHERE is_used = '1'
AND ivt.product_area = #{productArea}
WHERE ivt.product_area = #{productArea}
</select>
<select id="getNeedBakingPoint" resultType="org.nl.wms.pdm.ivt.hot.service.dao.StIvtHotpointivt">
SELECT hot.*

View File

@@ -36,19 +36,20 @@ public class AutoMoveWasteFoilAGVTask {
private ISchBasePointService pointService;
public void run() {
log.info("自动巡航废箔任务开始执行...");
//自动巡航只有耳波
JSONObject jsonObject = new JSONObject();
List<SchBasePoint> fbPoints = pointService.getAllBusinessNotTaskPoint("A1", "A1-FB",
"2", "1", null, null);
// 筛选一号位
List<SchBasePoint> fbPointsFilter = fbPoints.stream()
List<SchBasePoint> fbPointsfFilter = fbPoints.stream()
.filter(point -> point.getSort()!= null)
.filter(point -> point.getSort() .equals(1)).collect(Collectors.toList());
if (CollUtil.isEmpty(fbPointsFilter)) {
if (CollUtil.isEmpty(fbPointsfFilter)) {
log.info("自动巡航废箔任务执行异常,无废箔位");
return;
}
jsonObject.put("point_code", fbPointsFilter.get(0).getPoint_code());
jsonObject.put("point_code", fbPointsfFilter.get(0).getPoint_code());
jsonObject.put("vehicle_type", "1");
otherPdaService.startMoveWasteFoilV2(jsonObject);
}

View File

@@ -98,6 +98,10 @@ public class PdaSendShaftAGVTask extends AbstractTask {
String endPointCode = taskObj.getPoint_code2();
String startPointCode = taskObj.getPoint_code1();
StIvtCutpointivt endPoint = stIvtCutpointivtService.getOneByCode(endPointCode);
//长短轴需要截取
if (startPointCode.contains("_C") || startPointCode.contains("_D")){
startPointCode = startPointCode.substring(0,9);
}
BstIvtCutpointivt startPoint = bcutpointivtService.getPintByAgvCode(startPointCode, false);
//起点点位清空
startPoint.setQzz_no1("");

View File

@@ -173,6 +173,10 @@ public class SlitterDownAGVTask extends AbstractTask {
List<PdmBiSlittingproductionplan> list = slittingproductionplanService.getByQzzNos(qzzNo, "06");
// 终点设置数据
String endPointCode = taskObj.getPoint_code2();
//长短轴需要截取
if (endPointCode.contains("_C") || endPointCode.contains("_D")){
endPointCode = endPointCode.substring(0,9);
}
BstIvtCutpointivt endPoint = bstIvtCutpointivtService.getPintByAgvCode(endPointCode, false);
endPoint.setQzz_no1(taskObj.getVehicle_code());
endPoint.setQzz_no2(taskObj.getVehicle_code2());