| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 添加场地管理 |
| | | * |
| | | * @return |
| | | */ |
| | | @RequestMapping("/base/site/addSite1") |
| | | public Integer addSite1(@RequestBody Site site) { |
| | | boolean save = siteService.save(site); |
| | | return site.getId(); |
| | | } |
| | | /** |
| | | * 添加场地管理 |
| | | * |
| | |
| | | |
| | | |
| | | byId.setSid(Arrays.asList(storeId)); |
| | | List<Site> list = siteService.list(new LambdaQueryWrapper<Site>() |
| | | .eq(Site::getStoreId, storeId) |
| | | .eq(Site::getSign, 1)); |
| | | List<Integer> collect = list.stream().map(Site::getId).collect(Collectors.toList()); |
| | | byId.setRid(collect); |
| | | // List<Site> list = siteService.list(new LambdaQueryWrapper<Site>() |
| | | // .eq(Site::getStoreId, storeId) |
| | | // .eq(Site::getSign, 1)); |
| | | // List<Integer> collect = list.stream().map(Site::getId).collect(Collectors.toList()); |
| | | Integer siteId = byId.getSiteId(); |
| | | ArrayList<Integer> list1 = new ArrayList<>(); |
| | | list1.add(siteId); |
| | | byId.setRid(list1); |
| | | map.put("data", byId); |
| | | |
| | | |
| | | map.put("ids", ids); |
| | | return ResultUtil.success(map); |
| | | } catch (Exception e) { |