feat:增加校验:只有排队中状态的记录才能执行失效操

This commit is contained in:
不睡觉的月亮 2025-12-08 10:48:56 +08:00
parent 37086142a2
commit 4a305916b8

View File

@ -298,6 +298,11 @@ public class StorePinkServiceImpl extends ServiceImpl<StorePinkMapper, StorePink
return; return;
} }
// 仅当排队状态为"排队中"(status=1)时才能失效
if (target.getStatus() == null || target.getStatus() != 1) {
throw new YztException("只有排队中状态的记录才能执行失效操作");
}
Integer queueType = target.getQueueType(); Integer queueType = target.getQueueType();
Integer queueNo = target.getQueueNo(); Integer queueNo = target.getQueueNo();
if (queueType == null || queueNo == null) { if (queueType == null || queueNo == null) {