# 营业时间校验接入顾客端 Implementation Plan > **For agentic workers:** inline execution in the current workspace is required; preserve unrelated user changes and do not commit or push automatically. **Goal:** 让顾客端展示真实营业时间,并在**非营业时段入口即整页拦截**(不给浏览菜单),叠加提交前二次校验与后端异常,共三道防线。 **Architecture:** 后端新增一个免登录开放接口 `GET /hotel/open/customer/businessHours`,由 `HotelBusinessHoursServiceImpl.currentStatus()` 基于既有 `selectEnabled` 一次查询在 Java 层推导「当天时段 + 下次营业时段」,返回结构化 VO;下单校验落在 `HotelCustomerController.orderCreate()`(非 Service 层)。H5 侧以 Pinia store 为单一数据源(**不持久化**):`room-confirm` 入口整页拦截、`menu` 独立校验不渲染菜品(防 TabBar 绕过)、`order-confirm` 提交前刷新并阻断,后端异常兜底。 **Tech Stack:** Java 17(**forge-hotel 模块强制 JDK 7 语法风格**)、Spring Boot 3.2、MyBatis-Plus、Sa-Token;Vue 3 `