| | |
| | | import com.dsh.course.feignClient.account.model.CityListQuery; |
| | | import com.dsh.course.feignClient.account.model.TCityManager; |
| | | import com.dsh.course.feignClient.communityWorldCup.Model.WorldCupStore; |
| | | import com.dsh.course.feignClient.communityWorldCup.Model.WorldCupStoreVO; |
| | | import com.dsh.course.feignClient.communityWorldCup.WorldCupStoreClient; |
| | | import com.dsh.course.feignClient.competition.CompetitionClient; |
| | | import com.dsh.course.feignClient.other.model.Site; |
| | |
| | | return SUCCESS_TIP; |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | // public static void main(String[] args) { |
| | | //// HashMap<String, String> map = new HashMap<>(); |
| | | //// map.put("page","1"); |
| | | //// map.put("space_id","2010"); |
| | | //// // 获取门禁列表 |
| | | //// String s1 = HttpRequestUtil.getRequest |
| | | //// ("https://port.daowepark.com/v7/user_api/general/getDevice", map); |
| | | //// System.err.println(s1); |
| | | // |
| | | // HashMap<String, String> map = new HashMap<>(); |
| | | // map.put("page","1"); |
| | | // map.put("space_id","2010"); |
| | | // map.put("sign","0DB011836143EEE2C2E072967C9F4E4B"); |
| | | // map.put("space_id","1"); |
| | | // map.put("device_id","1"); |
| | | // map.put("region_id","2010"); |
| | | // // 获取门禁列表 |
| | | // String s1 = HttpRequestUtil.getRequest |
| | | // ("https://try.daowepark.com/v7/user_api/general/getDevice", map); |
| | | // ("https://port.daowepark.com/v7/user_api/general/getDevice", map); |
| | | // System.err.println(s1); |
| | | |
| | | HashMap<String, String> map = new HashMap<>(); |
| | | map.put("sign","0DB011836143EEE2C2E072967C9F4E4B"); |
| | | map.put("space_id","1"); |
| | | map.put("device_id","1"); |
| | | map.put("region_id","2010"); |
| | | // 获取门禁列表 |
| | | String s1 = HttpRequestUtil.getRequest |
| | | ("https://try.daowepark.com/v7/user_api/general/getDevice", map); |
| | | System.err.println(s1); |
| | | }; |
| | | // }; |
| | | /** |
| | | * 跳转到车辆管理首页 |
| | | */ |
| | |
| | | StoreConfig c8 = storeConfigService.getOne(new LambdaQueryWrapper<StoreConfig>().eq(StoreConfig::getStoreId, id).eq(StoreConfig::getType,8)); |
| | | model.addAttribute("c8",c8); |
| | | model.addAttribute("id",id); |
| | | List<WorldCupStore> worldCupStores = worldCupStoreClient.getWorldCupStoreListByStoreId(id); |
| | | List<WorldCupStoreVO> worldCupStores = worldCupStoreClient.getWorldCupStoreListByStoreId(id); |
| | | if (CollectionUtils.isEmpty(worldCupStores)){ |
| | | model.addAttribute("worldCupStores",new ArrayList<>()); |
| | | }else{ |
| | |
| | | map1.put("remark",tStore.getIntroduce()); |
| | | map1.put("lat",tStore.getLat()); |
| | | map1.put("lng",tStore.getLon()); |
| | | String result = HttpRequestUtil.postRequest("https://try.daowepark.com/v7/user_api/general/addSpace", map1); |
| | | String result = HttpRequestUtil.postRequest("https://port.daowepark.com/v7/user_api/general/addSpace", map1); |
| | | System.out.println(result); |
| | | JSONObject jsonObject = JSONObject.parseObject(result); |
| | | JSONObject data = jsonObject.getJSONObject("data"); |
| | |
| | | // mapSite.put("name",tStore.getName()); |
| | | // mapSite.put("space_id",tStore.getId().toString()); |
| | | // mapSite.put("area_id",tSite.getId().toString()); |
| | | // HttpRequestUtil.postRequest("https://try.daowepark.com/v7/user_api/general/addSpaceArea", mapSite); |
| | | // HttpRequestUtil.postRequest("https://port.daowepark.com/v7/user_api/general/addSpaceArea", mapSite); |
| | | // for (String s : tStore.getIds().split(",")) { |
| | | // HashMap<String, String> map = new HashMap<>(); |
| | | // map.put("sign","0DB011836143EEE2C2E072967C9F4E4B"); |
| | |
| | | // map.put("device_id",s); |
| | | // map.put("region_id",tSite.getId().toString()); |
| | | // // 添加门禁 |
| | | // String s1 = HttpRequestUtil.postRequest("https://try.daowepark.com/v7/user_api/general/addDevice", map); |
| | | // String s1 = HttpRequestUtil.postRequest("https://port.daowepark.com/v7/user_api/general/addDevice", map); |
| | | // System.out.println(s1); |
| | | // } |
| | | return new SuccessTip<>(); |
| | |
| | | @RequestMapping(value = "/deleteTwo") |
| | | public Object delete2(Integer id) { |
| | | try { |
| | | storeOtherConfigService.removeById(id); |
| | | |
| | | tStoreOtherConfigTrueService.removeById(id); |
| | | return SUCCESS_TIP; |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |