feat:增加校验:只有排队中状态的记录才能执行失效操
This commit is contained in:
parent
37086142a2
commit
4a305916b8
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user