suerprisePlus
2024-09-27 53ae0215de46b9bb68d9aa5d5a3e83dde7cb3986
src/main/java/com/yb/service/AgentService.java
@@ -61,13 +61,11 @@
    public HashMap<String, Object> getQueryRelationship(String place, String filed) throws Exception {
        String poiObj = xzService.getQueryEntity(place, filed, xzConfig.layerId, xzConfig.dbid, xzConfig.layerQuery);
       if(poiObj == null){
           HashMap<String, Object> hashMap = new HashMap<>();
           hashMap.put("msg","未查询到"+place+"相关数据");
           return hashMap;
       }
        if (poiObj == null) {
            HashMap<String, Object> hashMap = new HashMap<>();
            hashMap.put("msg", "未查询到" + place + "相关数据");
            return hashMap;
        }
        HashMap<String, String> hashMap = new HashMap<String, String>();
        hashMap.put("token", xzConfig.token);
        hashMap.put("dbid", xzConfig.dbid);
@@ -142,11 +140,11 @@
            String markDown = "| 数据类型 | 数据量 |\n|------|------|\n";
            for (int i = 0; i < arrayList.size(); i++) {
                String name = arrayList.get(i).getName();
                int count =  arrayList.get(i).getCount();
                int count = arrayList.get(i).getCount();
                markDown += "| " + name + " | " + count + " |\n";
            }
            traiMap.put("msg",markDown);
            traiMap.put("msg", markDown);
        }
        System.out.println("rec getQueryRelationship:" + traiMap);