| | |
| | | try { |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | SiteBooking byId = siteBookingService.getById(id); |
| | | Integer storeId = byId.getStoreId(); |
| | | Store byId1 = service.getById(storeId); |
| | | |
| | | List<Integer> ids = getIds(byId.getSiteId()); |
| | | byId.setStorePhone(byId1.getPhone()); |
| | | map.put("data",byId); |
| | | map.put("ids",ids); |
| | | return ResultUtil.success(map); |
| | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/base/site/getNewAddSiteList") |
| | | public List<SiteVo> getAppUserSiteList(){ |
| | | public List<SiteVo> getAppUserSiteList(@RequestBody Integer storeId){ |
| | | List<SiteVo> siteVos = new ArrayList<>(); |
| | | |
| | | List<Site> list = siteService.list(new QueryWrapper<Site>() |
| | | List<Site> list = siteService.list(new QueryWrapper<Site>().eq("state",1).eq("storeId",storeId) |
| | | .orderByDesc("insertTime")); |
| | | if (list.size() > 0 ){ |
| | | for (Site site : list) { |