无关风月
2025-12-26 d47bf3e1e3bf56b60ea6a1649ddd618d5ae803f1
cloud-server-other/src/main/java/com/dsh/other/controller/CodeCallBackController.java
@@ -50,6 +50,9 @@
        System.err.println("dataId:"+dataId);
        System.err.println("rid:"+rid);
        System.err.println("sid:"+sid);
        if (rid==32){
            rid= 27;
        }
        Date date = new Date();
        // codeType二维码类型1=订场 2=散客,3=门票,玩湃惠民卡codeType=4 234需要校验能否进场
@@ -84,16 +87,15 @@
                return ResultUtil.error("该时间段已无空位");
            }else{
                // 远程调用 将门票设置为已使用
                userCouponClient.changeTicketStatus(dataId);
                userCouponClient.changeTicketStatus(dataId,sid,rid);
                return ResultUtil.success();
            }
        }
        if (codeType==4){
            //  判断是否能入场 远程调用将门票设置为已使用
            LocalDate now = LocalDate.now();
            //  判断是否能入场
            Date date1 = new Date();
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
            String day = simpleDateFormat.format(now);
            String day = simpleDateFormat.format(date1);
            List<QuerySiteTimes> querySiteTimes = siteService.querySiteTimes(rid, day, null, null, 2);
            Integer flag =0;
            for (QuerySiteTimes querySiteTime : querySiteTimes) {
@@ -112,4 +114,6 @@
        return ResultUtil.success();
    }
}