| | |
| | | private XzConfig xzConfig;
|
| | | @Autowired
|
| | | private EntityHttpUtil entityHttpUtil;
|
| | | @Autowired
|
| | | private AgentService agentService;
|
| | |
|
| | | // 关键字查询
|
| | | public String getQueryFiled(String place, String filed, String layerId, String dbId, String queryEntity) throws Exception {
|
| | |
| | | String encrypt = RsaHelper.encrypt(key, query);
|
| | | HashMap formData = getHashMap(layerId, dbId, "1", "0", encrypt, null);
|
| | | String jsonString = entityHttpUtil.getPostMessage(queryEntity, formData);
|
| | | System.out.println("rec getQueryFiled:" + jsonString);
|
| | |
|
| | | JSONObject jsonObject = JSON.parseObject(jsonString);
|
| | | JSONObject dataObjject = jsonObject.getJSONObject("data");
|
| | | JSONArray dataArray = dataObjject.getJSONArray("items");
|
| | | if (dataArray.size() > 0) {
|
| | | return dataArray.getJSONObject(0).toString();
|
| | | }
|
| | | return "";
|
| | | }
|
| | |
|
| | | // 范围查询
|
| | | public String getQueryAround(String type, String wkt, String filed, String layerId, String dbid, String entity) throws Exception {
|