From 2a8c4e590db641bbb3c1f5fc016a0b99bb52cdff Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期二, 21 十月 2025 16:30:54 +0800
Subject: [PATCH] 月台自动叫号处理问题

---
 server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformServiceImpl.java |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformServiceImpl.java b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformServiceImpl.java
index 82598ea..31254d5 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformServiceImpl.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformServiceImpl.java
@@ -144,13 +144,15 @@
                 throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"瀵逛笉璧凤紝鏈堝彴缁勪俊鎭笉姝g‘锛�");
             }
             //濡傛灉鏈堝彴鍒嗙粍鍙戠敓鍙樺寲
-            Long count =  platformJobJoinMapper.selectCount(  new QueryWrapper<PlatformJob>().lambda()
+            Long count =  platformJobJoinMapper.selectCount( new QueryWrapper<PlatformJob>().lambda()
                     .eq(PlatformJob::getIsdeleted,Constants.ZERO)
-                    .notIn(PlatformJob::getStatus,Constants.PlatformJobStatus.WART_SIGN_IN.getKey()
-                            ,Constants.PlatformJobStatus.WAIT_CONFIRM.getKey()
-                            ,Constants.PlatformJobStatus.DONE.getKey()
-                            ,Constants.PlatformJobStatus.LEAVED.getKey()
-                            ,Constants.PlatformJobStatus.CANCEL.getKey()
+                    .eq(PlatformJob::getPlatformId,model.getId())
+                    .in(PlatformJob::getStatus,Constants.PlatformJobStatus.IN_WAIT.getKey()
+                            ,Constants.PlatformJobStatus.CALLED.getKey()
+                            ,Constants.PlatformJobStatus.WORKING.getKey()
+                            ,Constants.PlatformJobStatus.TRANSFERING.getKey()
+                            ,Constants.PlatformJobStatus.EXCEPTION.getKey()
+                            ,Constants.PlatformJobStatus.OVER_NUMBER.getKey()
                     ));
             if(count!=null && count>0){
                 throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"瀵逛笉璧凤紝褰撳墠鏈堝彴鏈夋鍦ㄤ綔涓氱殑浠诲姟锛屼笉鑳借繘琛屾湀鍙扮粍鍒囨崲鎿嶄綔锛�");

--
Gitblit v1.9.3