mitao
2025-11-05 aff908fac4b654fd5bffa7b8031b3ff1eb4bf01f
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){
            // 判断能否入场