fix: 判空校验

This commit is contained in:
2025-03-20 19:16:26 +08:00
parent 6443fe2da4
commit e35fd628c8

View File

@@ -419,7 +419,7 @@ public class SlitterServiceImpl implements SlitterService {
BstIvtShafttubeivt putWaitPoint = shafttubeivtService.getOne(new LambdaQueryWrapper<BstIvtShafttubeivt>()
.eq(BstIvtShafttubeivt::getPoint_location, startPoint.getPoint_location())
.eq(BstIvtShafttubeivt::getPoint_type, "8"));
if (ObjectUtil.isNotEmpty(putWaitPoint)) {
if (ObjectUtil.isEmpty(putWaitPoint)) {
throw new BadRequestException("未找到可存放气涨轴规格「" + qzzSize + "」的等待点位");
}
// 创建任务
@@ -467,7 +467,7 @@ public class SlitterServiceImpl implements SlitterService {
BstIvtShafttubeivt pickWaitPoint = shafttubeivtService.getOne(new LambdaQueryWrapper<BstIvtShafttubeivt>()
.eq(BstIvtShafttubeivt::getPoint_location, startPoint.getPoint_location())
.eq(BstIvtShafttubeivt::getPoint_type, "7"));
if (ObjectUtil.isNotEmpty(pickWaitPoint)) {
if (ObjectUtil.isEmpty(pickWaitPoint)) {
throw new BadRequestException("未找到可存放气涨轴规格「" + qzzSize + "」的等待点位");
}
// BstIvtShafttubeivt shafttubeivt = shafttubeivts.get(0);