| | |
| | | public String relationRelateddata;
|
| | | @Value("${itcats.geographical.permissionLayer}")
|
| | | public String permissionLayer;
|
| | | @Value("${itcats.geographical.logUser}")
|
| | | public String logUser;
|
| | | @Value("${itcats.geographical.logPass}")
|
| | | public String logPass;
|
| | | @Value("${itcats.geographical.accountgraphicalUrl}")
|
| | | public String accountgraphicalUrl;
|
| | | @Value("${itcats.geographical.securityPublickey}")
|
| | | public String securityPublickey;
|
| | | @Value("${itcats.geographical.securityLogin}")
|
| | | public String securityLogin;
|
| | |
|
| | | // Agent
|
| | | @Value("${itcats.agent.agentUrl}")
|
| | |
| | | import java.util.ArrayList;
|
| | | import java.util.Arrays;
|
| | | import java.util.HashMap;
|
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | |
|
| | | import com.alibaba.fastjson.JSON;
|
| | | import com.yb.dao.THistoryDao;
|
| | | import com.yb.service.ThistoriesServices;
|
| | | import io.swagger.annotations.ApiOperation;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.*;
|
| | |
| | | private THistoryService tHistoryService;
|
| | | @Autowired
|
| | | private THistoryDao tHistoryDao;
|
| | | @Autowired
|
| | | private ThistoriesServices thistoriesServices;
|
| | |
|
| | | /**
|
| | | * å表
|
| | |
| | | }
|
| | | return R.ok(list);
|
| | | }
|
| | |
|
| | | @GetMapping("/getSessionById")
|
| | | @ApiOperation(value = "getSessionById", notes = "")
|
| | | public R getSessionById(@RequestParam(name = "sessionid", defaultValue = " ") String sessionid) {
|
| | | List<THistoryEntity> list = thistoriesServices.getSessionId(sessionid);
|
| | | List<HashMap<Object, Object>> sList = new ArrayList<>();
|
| | | for (int i = 0; i < list.size(); i++) {
|
| | | THistoryEntity th = list.get(i);
|
| | | HashMap<Object, Object> hashMap = new HashMap<>();
|
| | | hashMap.put("id", th.getId());
|
| | | hashMap.put("human", th.getHuman());
|
| | | hashMap.put("ai", th.getAi());
|
| | | sList.add(hashMap);
|
| | | }
|
| | | PageUtils page = new PageUtils(sList,0,0,0);
|
| | | return R.ok() .put("page", page);
|
| | | }
|
| | |
|
| | |
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.yb.controller;
|
| | |
|
| | | import com.alibaba.fastjson.JSON;
|
| | | import com.alibaba.fastjson.JSONObject;
|
| | | import com.yb.config.XzConfig;
|
| | | import com.yb.helper.RsaHelper;
|
| | | import com.yb.util.EntityHttpUtil;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.context.annotation.Configuration;
|
| | | import org.springframework.scheduling.annotation.Async;
|
| | | import org.springframework.scheduling.annotation.EnableScheduling;
|
| | | import org.springframework.scheduling.annotation.Scheduled;
|
| | | import org.springframework.stereotype.Component;
|
| | | import sun.text.resources.FormatData;
|
| | |
|
| | | import java.io.IOException;
|
| | | import java.util.HashMap;
|
| | |
|
| | | @Component
|
| | | @Configuration
|
| | | @EnableScheduling
|
| | | public class TokenController {
|
| | | @Autowired
|
| | | private EntityHttpUtil entityHttpUtil;
|
| | | @Autowired
|
| | | private XzConfig xzConfig;
|
| | | @Autowired
|
| | | WebSocketController webSocketController;
|
| | |
|
| | | private String publickey = null;
|
| | |
|
| | | @Async
|
| | | @Scheduled(fixedRate = 900000L)
|
| | | public void webSocketGetInfo() throws Exception, IOException, InterruptedException {
|
| | |
|
| | | getGedbPublickey();
|
| | | }
|
| | |
|
| | | private void getGedbPublickey() throws Exception {
|
| | | String url = xzConfig.accountgraphicalUrl + xzConfig.securityPublickey;
|
| | | JSONObject data = JSONObject.parseObject(entityHttpUtil.getAgentMessage(url));
|
| | | System.out.println("webSocketGetInfo: data" + data);
|
| | | String code = data.getString("code");
|
| | | if (code.contains("200")) {
|
| | | publickey = data.getString("data");
|
| | | getGedbToken();
|
| | | } else {
|
| | | System.out.println("webSocketGetInfo: æ¥å£å¼å¸¸" + data);
|
| | | getGedbPublickey();
|
| | | }
|
| | | }
|
| | |
|
| | | private void getGedbToken() throws Exception {
|
| | | String url = xzConfig.accountgraphicalUrl + xzConfig.securityLogin;
|
| | | HashMap<String, String> hashMap = new HashMap();
|
| | | hashMap.put("userid", xzConfig.logUser);
|
| | | String encrypt = RsaHelper.encrypt(publickey, xzConfig.logPass);
|
| | | hashMap.put("password", encrypt);
|
| | | JSONObject data = JSON.parseObject(entityHttpUtil.getPostAccount(url, hashMap));
|
| | | String code = data.getString("code");
|
| | | if (code.contains("200")) {
|
| | | JSONObject token_data = JSONObject.parseObject(data.getString("data"));
|
| | | xzConfig.token = token_data.getString("token");
|
| | | } else {
|
| | | System.out.println("webSocketGetInfo: æ¥å£å¼å¸¸" + data);
|
| | | getGedbToken();
|
| | | }
|
| | |
|
| | |
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | public R getIntention(@RequestParam Map<String, String> allParams) throws Exception {
|
| | | System.out.println("rec getMessage:" + allParams);
|
| | | String msg = allParams.get("message");
|
| | | String sessionid = allParams.get("session_id");
|
| | |
|
| | | String libid = allParams.get("lib_id");
|
| | | // 夿msgæ¯å¦ä¸ºç©º
|
| | | if (StringUtils.isEmpty(msg)) {
|
| | | String info = agentService.getAgentIntention(xzConfig.agentUrl, xzConfig.agentIntent, "''");
|
| | | String info = agentService.getAgentIntention(xzConfig.agentUrl, xzConfig.agentIntent, "''",sessionid,libid);
|
| | | JSONObject obj = JSONObject.parseObject(info);
|
| | | String cont = obj.getString("content");
|
| | | System.out.println("rec isEmpty:" + cont);
|
| | |
| | | HashMap<String, Object> hashMap = new HashMap<String, Object>();
|
| | | if (isMap) {
|
| | | hashMap.put("type", "Map");
|
| | | String funcInfo = agentService.getAgentIntention(xzConfig.agentUrl, xzConfig.agentIntent, msg);
|
| | | hashMap.put("session_id", allParams.get("session_id"));
|
| | | String funcInfo = agentService.getAgentIntention(xzConfig.agentUrl, xzConfig.agentIntent, msg,sessionid,libid);
|
| | | JSONObject jsonObject = JSON.parseObject(funcInfo);
|
| | | String orderString = jsonObject.getString("order");
|
| | | if (orderString == null) {
|
| | |
| | | return R.error(erroContent);
|
| | |
|
| | | }
|
| | | String report =jsonObject.getString("report");
|
| | | // æå¾å½æ°å¹é
|
| | | HashMap<String, Object> mapObj = intentionService.getFunctionMatch(orderString, allParams);
|
| | | HashMap<String, Object> mapObj = intentionService.getFunctionMatch(orderString, allParams,report);
|
| | | // hashMap.put("place",place)
|
| | | String args = JSONObject.parseObject(orderString).getString("args");
|
| | | if(args!= null){
|
| | |
| | | String ragInfo1 = agentService.getAgentRag(xzConfig.agentUrl, xzConfig.agentRag, allParams.get("session_id"), allParams.get("lib_id"), msg);
|
| | | System.out.println("rec rag:" + ragInfo1);
|
| | | if (ragInfo1.equals("")) {
|
| | | String ragInfo = agentService.getAgentIntention(xzConfig.agentUrl, xzConfig.agentChat, msg);
|
| | | String ragInfo = agentService.getAgentIntention(xzConfig.agentUrl, xzConfig.agentChat, msg,sessionid,libid);
|
| | | JSONObject jsonObject = JSON.parseObject(ragInfo);
|
| | | String answer = jsonObject.getString("content");
|
| | | System.out.println("Answer: " + answer);
|
| | |
| | | formData.put("token", xzConfig.token);
|
| | | formData.put("dbid", xzConfig.dbid);
|
| | | String obj = entityHttpUtil.getPostMessage(xzConfig.permissionLayer, formData);
|
| | | System.out.println("layerList: " + obj);
|
| | | // System.out.println("layerList: " + obj);
|
| | | HashMap<String, Object> hashMap = new HashMap<String, Object>();
|
| | | String layers = JSON.parseObject(JSONObject.parseObject(obj).getString("data")).getString("layers");
|
| | | JSONArray dataArray = JSONArray.parseArray(layers);
|
| | |
| | |
|
| | | }
|
| | |
|
| | | System.out.println("layerList: " + list);
|
| | | // System.out.println("layerList: " + list);
|
| | | hashMap.put("data", list);
|
| | | return R.ok(hashMap);
|
| | | }
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.yb.dao;
|
| | |
|
| | |
|
| | | import com.yb.entity.THistoryEntity;
|
| | | import org.apache.ibatis.annotations.Mapper;
|
| | | import org.apache.ibatis.annotations.Select;
|
| | | import org.springframework.stereotype.Repository;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | |
|
| | | @Mapper
|
| | | @Repository
|
| | | public interface ThistoriestDao {
|
| | |
|
| | | // @Select("\n" +
|
| | | // "SELECT * FROM (\n" +
|
| | | // " SELECT id,human,ai FROM t_history where sessionid='m8YvkamB55WFHPKvFHTbP' ORDER BY id DESC LIMIT 5\n" +
|
| | | // ") AS subquery")
|
| | | List<THistoryEntity> getSessionId(String sessionid);
|
| | | }
|
| | |
| | | return obj;
|
| | | }
|
| | |
|
| | | public String getAgentIntention(String url, String api, String msg) throws Exception {
|
| | | String http = url + api + "?message=" + msg;
|
| | | public String getAgentIntention(String url, String api, String msg,String sessionid,String libid) throws Exception {
|
| | | String http = url + api +"?session_id="+sessionid+ "&lib_id=" + libid+ "&message=" + msg;
|
| | | System.out.println("rec getMessage:" + http);
|
| | | String obj = entityHttpUtil.getAgentMessage(http);
|
| | | System.out.println("rec getMessage:" + obj);
|
| | |
| | | import com.alibaba.fastjson.JSONObject;
|
| | | import com.github.houbb.opencc4j.core.impl.ZhConvertBootstrap;
|
| | | import com.yb.config.XzConfig;
|
| | | import com.yb.controller.WebSocketController;
|
| | | import com.yb.helper.RsaHelper;
|
| | | import com.yb.util.EntityHttpUtil;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | |
| | | @Autowired
|
| | | private EntityHttpUtil entityHttpUtil;
|
| | |
|
| | | public HashMap<String, Object> getFunctionMatch(String orderString, Map<String, String> allParams) throws Exception {
|
| | | @Autowired
|
| | | private WebSocketController webSocketController ;
|
| | |
|
| | | public HashMap<String, Object> getFunctionMatch(String orderString, Map<String, String> allParams,String report) throws Exception {
|
| | | HashMap<String, Object> mapObj = new HashMap<String, Object>();
|
| | | JSONObject orderObject = JSON.parseObject(orderString);
|
| | | String name = JSONObject.parseObject(orderObject.getString("args")).getString("place");
|
| | |
| | | } else if (func.equals(xzConfig.funcName[4])) {
|
| | | mapObj = getCombatSimulate(orderObject, func);
|
| | | } else if (func.equals(xzConfig.funcName[5])) {
|
| | | mapObj = getBatEnv(orderObject, func, allParams);
|
| | | // mapObj = getBatEnv(orderObject, func, allParams);
|
| | | getBatEnv(orderObject, func, allParams,report);
|
| | | }else{
|
| | |
|
| | | }
|
| | | return mapObj;
|
| | |
|
| | |
| | | return hashMap;
|
| | | }
|
| | |
|
| | | private HashMap<String, Object> getBatEnv(JSONObject orderObject, String func, Map<String, String> allParams) throws Exception {
|
| | | private void getBatEnv(JSONObject orderObject, String func, Map<String, String> allParams,String report) throws Exception {
|
| | | HashMap<String, Object> hashMap = new HashMap<String, Object>();
|
| | | hashMap.put("func", func);
|
| | |
|
| | | hashMap.put("session_id", (String)allParams.get("session_id"));
|
| | | System.out.println("rec history1:" + allParams);
|
| | |
|
| | | String val = entityHttpUtil.postAgentMessage(xzConfig.battleReport, allParams);
|
| | | JSONObject js = JSONObject.parseObject(val);
|
| | | if (js == null) {
|
| | | // String val = entityHttpUtil.postAgentMessage(xzConfig.battleReport, allParams);
|
| | | // JSONObject js = JSONObject.parseObject(val);
|
| | | if (report ==""|| report == null) {
|
| | | hashMap.put("msg", "æ¥åçæå¤±è´¥");
|
| | | return hashMap;
|
| | | webSocketController.sendAllMessage(JSON.toJSONString(hashMap));
|
| | | }else{
|
| | | hashMap.put("msg", report);
|
| | | webSocketController.sendAllMessage(JSON.toJSONString(hashMap));
|
| | | }
|
| | | System.out.println("rec history1:" + val);
|
| | | hashMap.put("msg", js.getString("content"));
|
| | |
|
| | | return hashMap;
|
| | |
|
| | | }
|
| | |
|
| | | //æ¥çæä¸ªåºåå
å个å®ä½/对象ä¹é´çå
³ç³»
|
| | |
| | | import com.yb.config.Query;
|
| | | import com.yb.entity.THistoryEntity;
|
| | |
|
| | | import java.util.ArrayList;
|
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | |
|
| | | /**
|
| | |
| | |
|
| | | PageUtils queryPage(Map<String, Object> params);
|
| | | PageUtils query(Map<String, Object> params);
|
| | |
|
| | |
|
| | | }
|
| | |
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.yb.service;
|
| | |
|
| | |
|
| | | import com.yb.dao.ThistoriestDao;
|
| | | import com.yb.entity.THistoryEntity;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import java.util.ArrayList;
|
| | | import java.util.List;
|
| | |
|
| | | @Service
|
| | | public class ThistoriesServices implements ThistoriestDao {
|
| | | @Autowired
|
| | | ThistoriestDao thistoriestDao;
|
| | |
|
| | | @Override
|
| | | public List<THistoryEntity> getSessionId(String sessionid) {
|
| | | return thistoriestDao.getSessionId(sessionid);
|
| | |
|
| | |
|
| | | }
|
| | | }
|
| | |
| | | HashMap<String, String> formData = getHashMap(layerId, dbid, null, null, null, null);
|
| | | formData.put("statistics", jsonArray.toString());
|
| | | formData.put("groupby", filed);
|
| | | return entityHttpUtil.getPostMessage(entity, formData);
|
| | | String meta = entityHttpUtil.getPostMessage(entity, formData);
|
| | | return meta;
|
| | | }
|
| | |
|
| | | // è·åè¿åä¿¡æ¯Map
|
| | |
| | | Response response = client.newCall(request).execute();
|
| | | return response.body().string();
|
| | | } catch (IOException e) {
|
| | | System.out.println(e.getMessage());
|
| | | System.out.println("å¼å¸¸ï¼"+aurl+","+e.getMessage());
|
| | | return null;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | public String getAgentMessage(String aurl) {
|
| | | try {
|
| | |
|
| | | System.out.println("æ¥å£è¯·æ±å°åï¼"+aurl );
|
| | | OkHttpClient client = new OkHttpClient.Builder().connectTimeout(0, TimeUnit.SECONDS)
|
| | | .readTimeout(0, TimeUnit.SECONDS)
|
| | | .writeTimeout(0, TimeUnit.SECONDS)
|
| | |
| | | Response response = client.newCall(request).execute();
|
| | | return response.body().string();
|
| | | } catch (IOException e) {
|
| | | System.out.println(e.getMessage());
|
| | | System.out.println("å¼å¸¸ï¼"+aurl+","+e.getMessage());
|
| | | return null;
|
| | | }
|
| | |
|
| | |
| | | Response response = client.newCall(request).execute();
|
| | | return response.body().string();
|
| | | } catch (IOException e) {
|
| | | System.out.println(e.getMessage());
|
| | | System.out.println("å¼å¸¸ï¼"+aurl+","+e.getMessage());
|
| | | return null;
|
| | | }
|
| | | // return null;
|
| | | }
|
| | |
|
| | | public String getPostAccount(String aurl, HashMap<String, String> parms) {
|
| | | try {
|
| | | FormBody.Builder builder = new FormBody.Builder();
|
| | | for (String key : parms.keySet()) {
|
| | | builder.add(key, parms.get(key));
|
| | | }
|
| | | RequestBody requestBody = builder.build();
|
| | | OkHttpClient client = new OkHttpClient.Builder().connectTimeout(0, TimeUnit.SECONDS)
|
| | | .readTimeout(0, TimeUnit.SECONDS)
|
| | | .writeTimeout(0, TimeUnit.SECONDS)
|
| | | .build();
|
| | | Request request = new Request.Builder()
|
| | | .url(aurl)
|
| | | .post(requestBody)
|
| | | .build();
|
| | | Response response = client.newCall(request).execute();
|
| | | return response.body().string();
|
| | | } catch (IOException e) {
|
| | | System.out.println("å¼å¸¸ï¼"+aurl+","+e.getMessage());
|
| | | return null;
|
| | | }
|
| | | // return null;
|
| | | }
|
| | | public String postAgentMessage(String aurl, Map<String, String> parms) {
|
| | | try {
|
| | | String axiosUrl = xzConfig.agentUrl + aurl;
|
| | |
| | | Response response = client.newCall(request).execute();
|
| | | return response.body().string();
|
| | | } catch (IOException e) {
|
| | | System.out.println(e.getMessage());
|
| | | System.out.println("å¼å¸¸ï¼"+aurl+","+e.getMessage());
|
| | | return null;
|
| | | }
|
| | | // return null;
|
| | |
| | | itcats:
|
| | | # å°çå®ä½åº
|
| | | geographical:
|
| | | # logUser: admin
|
| | | # logPass: Clive2012
|
| | | logUser: terra01
|
| | | logPass: admin
|
| | | # Tokenå°å
|
| | | token: 9ce350f238ba44fda10ddfe8b80f8967
|
| | | token: null
|
| | | # 请æ±å°å
|
| | | geographicalUrl: http://106.120.22.26:8013/geo-service/
|
| | | # geographicalUrl: http://106.120.22.26:8013/geo-service/
|
| | | geographicalUrl: http://103.135.160.14:5366/geo-service/
|
| | | accountgraphicalUrl: http://103.135.160.14:5366/account-service/
|
| | | # è·åå®ä½åºå表
|
| | | canview: /entitydb/list/canview
|
| | | # æ¥è¯¢å¾å±æ°æ®ï¼ææ°éï¼
|
| | |
| | | # å®ä½åºåç§°
|
| | | entityName: å¤§æ¨¡åæµè¯åº
|
| | | # å®ä½åºdbid
|
| | | # dbid: 3dce04bbab1540b5ae3d147e8503ab9d
|
| | | dbid: 29766abee55e45d6a6bb232cdf74ebbe
|
| | | # dbid: 29766abee55e45d6a6bb232cdf74ebbe
|
| | | dbid: 51d8a71b5ce248f4af32bc3a52f1bcff
|
| | | # å®ä½åºdbid
|
| | | # layerId: a61f2f8f-0bf9-422f-86fe-b7b0a30ebad9
|
| | | layerId: c8f3f75d-8730-44ec-81b7-f8ae4c5fd742
|
| | | layerId: e27aae6b-f04c-4c95-8711-40198368b8d8
|
| | | # æ¥è¯¢å
³é®å
|
| | | # queryFiled: enti_name
|
| | | queryFiled: name,name_2,name_1
|
| | | # queryFiled: name,name_2,name_1
|
| | | queryFiled: entityname
|
| | | # æ¥è¯¢ç±»ååæ®µ
|
| | | typeFiled: fclass_1
|
| | | # typeFiled: fclass_1
|
| | | typeFiled: targettype
|
| | | # å®ä½å
³é®åæ¥è¯¢
|
| | | layerQuery: /entitydbdata/layer/query
|
| | | # å
³ç³»å表æ¥è¯¢
|
| | |
| | | relationRelateddata: /graph/public/relation/relateddata
|
| | | # è·åå¾å±å表
|
| | | permissionLayer: /entitydb/map/config
|
| | | # è·åç»å½å
¬é¥
|
| | | securityPublickey: /security/publickey
|
| | | # ç³»ç»ç»å½æ¥å£
|
| | | securityLogin: /security/login
|
| | |
|
| | |
|
| | | #Agent大模å
|
| | | agent:
|
| | | # 访é®å°å
|
| | | agentUrl: http://106.120.22.26:5367
|
| | | # agentUrl: http://103.135.160.14:5637
|
| | | # æå¾å½æ°
|
| | | # agentUrl: http://106.120.22.26:5367
|
| | | agentUrl: http://192.168.11.194:5367
|
| | | # agentUrl: http://103.135.160.14:5367
|
| | | # |
| | | agentIntent: /intention
|
| | | # ragæå¡
|
| | | agentRag: /rag
|
| | |
| | | |
| | | # è¿ä¸ªé
ç½®ä¼å°æ§è¡çsqlæå°åºæ¥ï¼å¨å¼åææµè¯çæ¶åå¯ä»¥ç¨ |
| | | |
| | | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |
| | | # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |
| | | # è¿åç±»å为Map,æ¾ç¤ºnull对åºçåæ®µ |
| | | call-setters-on-nulls: true |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | | <mapper namespace="com.yb.dao.ThistoriestDao">
|
| | | <!-- æ ¹æ®åç§°æ¨¡ç³æ¥è¯¢-->
|
| | | <select id="getSessionId" resultType="com.yb.entity.THistoryEntity" >
|
| | | SELECT * FROM (
|
| | | SELECT id,human,ai FROM t_history
|
| | | <where>
|
| | |
|
| | | <if test="sessionid != null">
|
| | | sessionid like #{sessionid}
|
| | | </if>
|
| | | </where> ORDER BY id DESC LIMIT 5
|
| | | ) AS subquery
|
| | | ORDER BY id ASC;
|
| | | </select>
|
| | | </mapper> |
| | |
| | | itcats:
|
| | | # å°çå®ä½åº
|
| | | geographical:
|
| | | # logUser: admin
|
| | | # logPass: Clive2012
|
| | | logUser: terra01
|
| | | logPass: admin
|
| | | # Tokenå°å
|
| | | token: 9ce350f238ba44fda10ddfe8b80f8967
|
| | | token: null
|
| | | # 请æ±å°å
|
| | | geographicalUrl: http://106.120.22.26:8013/geo-service/
|
| | | # geographicalUrl: http://106.120.22.26:8013/geo-service/
|
| | | geographicalUrl: http://103.135.160.14:5366/geo-service/
|
| | | accountgraphicalUrl: http://103.135.160.14:5366/account-service/
|
| | | # è·åå®ä½åºå表
|
| | | canview: /entitydb/list/canview
|
| | | # æ¥è¯¢å¾å±æ°æ®ï¼ææ°éï¼
|
| | |
| | | # å®ä½åºåç§°
|
| | | entityName: å¤§æ¨¡åæµè¯åº
|
| | | # å®ä½åºdbid
|
| | | # dbid: 3dce04bbab1540b5ae3d147e8503ab9d
|
| | | dbid: 29766abee55e45d6a6bb232cdf74ebbe
|
| | | # dbid: 29766abee55e45d6a6bb232cdf74ebbe
|
| | | dbid: 51d8a71b5ce248f4af32bc3a52f1bcff
|
| | | # å®ä½åºdbid
|
| | | # layerId: a61f2f8f-0bf9-422f-86fe-b7b0a30ebad9
|
| | | layerId: c8f3f75d-8730-44ec-81b7-f8ae4c5fd742
|
| | | layerId: e27aae6b-f04c-4c95-8711-40198368b8d8
|
| | | # æ¥è¯¢å
³é®å
|
| | | # queryFiled: enti_name
|
| | | queryFiled: name,name_2,name_1
|
| | | # queryFiled: name,name_2,name_1
|
| | | queryFiled: entityname
|
| | | # æ¥è¯¢ç±»ååæ®µ
|
| | | typeFiled: fclass_1
|
| | | # typeFiled: fclass_1
|
| | | typeFiled: targettype
|
| | | # å®ä½å
³é®åæ¥è¯¢
|
| | | layerQuery: /entitydbdata/layer/query
|
| | | # å
³ç³»å表æ¥è¯¢
|
| | |
| | | relationRelateddata: /graph/public/relation/relateddata
|
| | | # è·åå¾å±å表
|
| | | permissionLayer: /entitydb/map/config
|
| | | # è·åç»å½å
¬é¥
|
| | | securityPublickey: /security/publickey
|
| | | # ç³»ç»ç»å½æ¥å£
|
| | | securityLogin: /security/login
|
| | |
|
| | |
|
| | | #Agent大模å
|
| | | agent:
|
| | | # 访é®å°å
|
| | | agentUrl: http://106.120.22.26:5367
|
| | | # agentUrl: http://103.135.160.14:5637
|
| | | # æå¾å½æ°
|
| | | # agentUrl: http://106.120.22.26:5367
|
| | | agentUrl: http://192.168.11.194:5367
|
| | | # agentUrl: http://103.135.160.14:5367
|
| | | # |
| | | agentIntent: /intention
|
| | | # ragæå¡
|
| | | agentRag: /rag
|
| | |
| | | |
| | | # è¿ä¸ªé
ç½®ä¼å°æ§è¡çsqlæå°åºæ¥ï¼å¨å¼åææµè¯çæ¶åå¯ä»¥ç¨ |
| | | |
| | | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |
| | | # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |
| | | # è¿åç±»å为Map,æ¾ç¤ºnull对åºçåæ®µ |
| | | call-setters-on-nulls: true |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | | <mapper namespace="com.yb.dao.ThistoriestDao">
|
| | | <!-- æ ¹æ®åç§°æ¨¡ç³æ¥è¯¢-->
|
| | | <select id="getSessionId" resultType="com.yb.entity.THistoryEntity" >
|
| | | SELECT * FROM (
|
| | | SELECT id,human,ai FROM t_history
|
| | | <where>
|
| | |
|
| | | <if test="sessionid != null">
|
| | | sessionid like #{sessionid}
|
| | | </if>
|
| | | </where> ORDER BY id DESC LIMIT 5
|
| | | ) AS subquery
|
| | | ORDER BY id ASC;
|
| | | </select>
|
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | | <mapper namespace="com.yb.dao.ThistoryDaos">
|
| | | <!-- æ ¹æ®åç§°æ¨¡ç³æ¥è¯¢-->
|
| | | <select id="getSessionById" resultType="java.util.ArrayList" >
|
| | | SELECT * FROM (
|
| | | SELECT id,human,ai FROM t_history where sessionid='m8YvkamB55WFHPKvFHTbP' ORDER BY id DESC LIMIT 5
|
| | | ) AS subquery
|
| | | ORDER BY id ASC;
|
| | | </select>
|
| | | </mapper> |
| | |
| | | com\yb\config\XzConfig.class |
| | | com\yb\controller\GisOsmPoisFree1Controller.class |
| | | com\yb\entity\GisOsmPoisFree1Entity.class |
| | | com\yb\dao\ThistoriestDao.class |
| | | com\yb\config\Constant$ScheduleStatus.class |
| | | com\yb\config\R.class |
| | | com\yb\message\WebSocketStompConfig.class |
| | |
| | | com\yb\controller\XzController.class |
| | | com\yb\service\TMetaService.class |
| | | com\yb\controller\agentController.class |
| | | com\yb\controller\TokenController.class |
| | | com\yb\controller\WebSocketController.class |
| | | com\yb\config\SQLFilter.class |
| | | com\yb\service\impl\TMetaServiceImpl.class |
| | |
| | | com\yb\controller\THistoryController.class |
| | | com\yb\postgis\GeometryDeserializer.class |
| | | com\yb\config\PageUtils.class |
| | | com\yb\service\ThistoriesServices.class |
| | |
| | | E:\project\AI大模å\æ°æºå¯¹æ¥\ollama_ai\src\main\java\com\yb\message\WebsocketConfiguration.java |
| | | E:\project\AI大模å\æ°æºå¯¹æ¥\ollama_ai\src\main\java\com\yb\service\impl\TMetaServiceImpl.java |
| | | E:\project\AI大模å\æ°æºå¯¹æ¥\ollama_ai\src\main\java\com\yb\config\Query.java |
| | | E:\project\AI大模å\æ°æºå¯¹æ¥\ollama_ai\src\main\java\com\yb\dao\ThistoriestDao.java |
| | | E:\project\AI大模å\æ°æºå¯¹æ¥\ollama_ai\src\main\java\com\yb\entity\GisOsmPoisFree1Entity.java |
| | | E:\project\AI大模å\æ°æºå¯¹æ¥\ollama_ai\src\main\java\com\yb\entity\ReqEntity.java |
| | | E:\project\AI大模å\æ°æºå¯¹æ¥\ollama_ai\src\main\java\com\yb\util\EntityHttpUtil.java |
| | | E:\project\AI大模å\æ°æºå¯¹æ¥\ollama_ai\src\main\java\com\yb\service\GisOsmPoisFree1Service.java |
| | | E:\project\AI大模å\æ°æºå¯¹æ¥\ollama_ai\src\main\java\com\yb\OllamaAiApplication.java |
| | | E:\project\AI大模å\æ°æºå¯¹æ¥\ollama_ai\src\main\java\com\yb\controller\TokenController.java |
| | | E:\project\AI大模å\æ°æºå¯¹æ¥\ollama_ai\src\main\java\com\yb\service\ThistoriesServices.java |
| | | E:\project\AI大模å\æ°æºå¯¹æ¥\ollama_ai\src\main\java\com\yb\controller\GisOsmPoisFree1Controller.java |
| | | E:\project\AI大模å\æ°æºå¯¹æ¥\ollama_ai\src\main\java\com\yb\entity\RelaEntity.java |
| | | E:\project\AI大模å\æ°æºå¯¹æ¥\ollama_ai\src\main\java\com\yb\service\IntentionService.java |