fix: 修改区域选择

This commit is contained in:
2024-07-03 14:28:47 +08:00
parent 7a742a405d
commit 49e07e2b20

View File

@@ -85,9 +85,8 @@ public class AutoSendAirShaftAgvTask {
// 获取任意一条 // 获取任意一条
PdmBiSlittingproductionplan demoPlan = plans.get(0); PdmBiSlittingproductionplan demoPlan = plans.get(0);
// 区域(B1, B2, B3, B4) // 区域(B1, B2, B3, B4)
String area = demoPlan.getContainer_name().substring(0, 2); StIvtCutpointivt deviceCut = cutpointivtService.getPintByExtCode(demoPlan.getResource_name(), false);
StIvtCutpointivt deviceCut = cutpointivtService.getOne(new LambdaQueryWrapper<StIvtCutpointivt>() String area = deviceCut.getProduct_area();
.eq(StIvtCutpointivt::getExt_code, demoPlan.getResource_name()));
// 校验是否为一组 // 校验是否为一组
if (ObjectUtil.isEmpty(cutPoint.getQzz_no1()) || ObjectUtil.isEmpty(cutPoint.getQzz_no2())) { if (ObjectUtil.isEmpty(cutPoint.getQzz_no1()) || ObjectUtil.isEmpty(cutPoint.getQzz_no2())) {
// 单条可能还有一条未套轴 // 单条可能还有一条未套轴