fix: 判断分切对接位上的计划是否存在
This commit is contained in:
@@ -4102,6 +4102,16 @@ public class SlitterServiceImpl implements SlitterService {
|
||||
if (ObjectUtil.isEmpty(planOne)) {
|
||||
throw new BadRequestException("子卷:" + containerName + " 计划信息不存在!");
|
||||
}
|
||||
// 判断子卷有没有绑定到分切对接位上
|
||||
List<BstIvtCutpointivt> alreadBindPlans = bcutpointivtService.list(new LambdaQueryWrapper<BstIvtCutpointivt>()
|
||||
.eq(BstIvtCutpointivt::getIs_used, true)
|
||||
.and(l -> l.eq(BstIvtCutpointivt::getQzz_no1, planOne.getQzzno()).or()
|
||||
.eq(BstIvtCutpointivt::getQzz_no2, planOne.getQzzno()))
|
||||
);
|
||||
if (!alreadBindPlans.isEmpty()) {
|
||||
throw new BadRequestException("子卷:" + containerName + " 已经绑定过子卷到暂存架上!");
|
||||
}
|
||||
|
||||
if (ObjectUtil.isNotEmpty(planOne.getQzzno())) {
|
||||
// 判断是不是绑定过的,就查一下这个气胀轴编码在缓存架子上存不存在
|
||||
List<Deliverycachepointivt> list = deliverycachepointivtService.list(new LambdaQueryWrapper<Deliverycachepointivt>()
|
||||
|
||||
Reference in New Issue
Block a user