| | |
| | | model.addAttribute("objectId",objectId); |
| | | |
| | | model.addAttribute("stores",stores); |
| | | |
| | | // 显式传递运营商ID和是否可预约字段,确保回显正确 |
| | | model.addAttribute("operatorId", site.getOperatorId()); |
| | | model.addAttribute("reservation", site.getReservation()); |
| | | |
| | | String nextName = site.getNextName(); |
| | | ArrayList<String> strings1 = new ArrayList<>(); |
| | |
| | | ); |
| | | return ResultUtil.success(prices); |
| | | } |
| | | |
| | | /** |
| | | * 管理后台 - 获取场地预约时间段数据(供预约新增页面使用) |
| | | */ |
| | | @ResponseBody |
| | | @RequestMapping("/querySiteTimes") |
| | | public ResultUtil querySiteTimes(Integer id, String day, String halfName, String siteName, Integer targetAudience) { |
| | | try { |
| | | return ResultUtil.success(siteService.querySiteTimes(id, day, halfName, siteName, targetAudience)); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return ResultUtil.error("获取时间段失败"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 场地管理首页 选择省 返回市 |