fix: 判空校验
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user