From aff908fac4b654fd5bffa7b8031b3ff1eb4bf01f Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期三, 05 十一月 2025 17:04:10 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/2.0' into 2.0

---
 cloud-server-other/src/main/java/com/dsh/other/controller/CodeCallBackController.java |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/cloud-server-other/src/main/java/com/dsh/other/controller/CodeCallBackController.java b/cloud-server-other/src/main/java/com/dsh/other/controller/CodeCallBackController.java
index a4c3862..4487ef8 100644
--- a/cloud-server-other/src/main/java/com/dsh/other/controller/CodeCallBackController.java
+++ b/cloud-server-other/src/main/java/com/dsh/other/controller/CodeCallBackController.java
@@ -61,11 +61,26 @@
             return ResultUtil.success();
         }
         if (codeType==3){
-            // 远程调用将门票设置为已使用 然后判断是否能入场
+            //  判断是否能入场 远程调用将门票设置为已使用
             LocalDate now = LocalDate.now();
+            Date date1 = new Date();
             SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
+            SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyy-MM-dd HH:mm");
             String day = simpleDateFormat.format(now);
+            String nowDate = simpleDateFormat.format(date1);
+
             List<QuerySiteTimes> querySiteTimes = siteService.querySiteTimes(rid, day, null, null, 2);
+            Integer flag =0;
+            for (QuerySiteTimes querySiteTime : querySiteTimes) {
+                if (querySiteTime.getSelectable()==1){
+                    //
+                }
+            }
+            if (flag==0){
+                return ResultUtil.error("该时间段已无空位");
+            }else{
+                return ResultUtil.success();
+            }
         }
         if (codeType==4){
             // 判断能否入场

--
Gitblit v1.7.1