| | |
| | | map.put("device_id",device); |
| | | map.put("region_id",""+siteId); |
| | | // 添加门禁 |
| | | 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); |
| | | Gson gson = new Gson(); |
| | | // 解析请求结果,json: |
| | |
| | | map.put("device_id",device); |
| | | map.put("region_id",""+siteId); |
| | | // 添加门禁 |
| | | String s1 = HttpRequestUtil.postRequest("https://try.daowepark.com/v7/user_api/general/editDevice/ids/"+id, map); |
| | | String s1 = HttpRequestUtil.postRequest("https://port.daowepark.com/v7/user_api/general/editDevice/ids/"+id, map); |
| | | System.out.println(s1); |
| | | Gson gson = new Gson(); |
| | | // 解析请求结果,json: |
| | |
| | | map.put("sign","0DB011836143EEE2C2E072967C9F4E4B"); |
| | | // 添加门禁 |
| | | String s1 = HttpRequestUtil.postRequest |
| | | ("https://try.daowepark.com/v7/user_api/general/deleteDevice/ids/"+gateId, map); |
| | | ("https://port.daowepark.com/v7/user_api/general/deleteDevice/ids/"+gateId, map); |
| | | |
| | | System.out.println(s1); |
| | | Gson gson = new Gson(); |
| | |
| | | .ne("state", 3)); |
| | | }else{ |
| | | tStores = storeService.list(new QueryWrapper<TStore>() |
| | | .eq("operatorId", 0) |
| | | .eq("operatorId", byId.getOperatorId()) |
| | | .eq("type", 2) |
| | | .ne("state", 3)); |
| | | } |
| | |
| | | @ResponseBody |
| | | public Object listAll(String name,String device,String operatorName, |
| | | String storeName) { |
| | | Page<Map<String,Object>> page = new PageFactory<Map<String,Object>>().defaultPage(); |
| | | |
| | | List<Integer> storeIds = new ArrayList<>(); |
| | | if (UserExt.getUser().getObjectType()==2){ |
| | | // 查询这个运营商下的所有门店 |
| | |
| | | if (UserExt.getUser().getObjectType()==3){ |
| | | storeIds.add(UserExt.getUser().getObjectId()); |
| | | } |
| | | List<Map<String,Object>> res = gateService.listAll(name,device,operatorName,storeName,storeIds,page); |
| | | List<Map<String,Object>> res = gateService.listAll(name,device,operatorName,storeName,storeIds); |
| | | for (Map<String, Object> re : res) { |
| | | Integer integer = Integer.valueOf(re.get("type").toString()); |
| | | if (integer==1){ |