tableinfo



INSERT INTO `tableinfo` (`TABLE_NAME`, `TABLE_ID_NAME`, `TABLE_ID_INCREMENT`, `TABLE_ID_VALUE`, `TABLE_ID_GENERATOR`, `TABLE_ID_TYPE`, `TABLE_ID_PREFIX`) VALUES
('TB_SM_INPUTTYPE', 'INPUT_TYPE_ID', 1, 9, 'SEQ_TB_SM_INPUTTYPE', 'sequence', ' '),
('td_cms_channel', 'channel_id', 1, 1, NULL, 'int', NULL),
('td_cms_collect_answer', 'answer_id', 1, 0, NULL, 'int', NULL),
('td_cms_collect_ipctrl2', 'id', 1, 0, NULL, 'int', NULL),
('td_cms_collect_title', 'id', 1, 0, NULL, 'int', NULL),
('TD_CMS_DOCCOMMENT_DICT', 'id', 1, 0, NULL, 'int', NULL),
('TD_CMS_DOCCOM_IMPEACHINFO', 'ID', 1, 0, NULL, 'int', NULL),
('td_cms_docsource', 'docsource_id', 1, 1, NULL, 'int', NULL),
('td_cms_document', 'document_id', 1, 2, NULL, 'int', NULL),
('td_cms_doc_attach', 'id', 1, 0, NULL, 'int', NULL),
('TD_CMS_DOC_COMMENT', 'COMMENT_ID', 1, 0, 'SEQ_TD_CMS_DOC_COMMENT', 'sequence', NULL),
('td_cms_doc_task', 'task_id', 1, 6, NULL, 'int', NULL),
('td_cms_doc_template', 'id', 1, 0, 'SEQ_TD_CMS_DOC_TEMPLATE', 'sequence', NULL),
('td_cms_extfield', 'field_id', 1, 0, NULL, 'int', NULL),
('TD_CMS_EXTVALUESCOPE', 'ID', 1, 0, NULL, 'int', NULL),
('td_cms_mailserverinfo', 'id', 1, 0, NULL, 'int', NULL),
('td_cms_site', 'site_id', 1, 1, NULL, 'int', NULL),
('td_cms_site_search', 'id', 1, 1, NULL, 'int', NULL),
('td_cms_template', 'template_id', 1, 3, NULL, 'int', NULL),
('TD_CMS_TEMPLATE_STYLE', 'STYLE_ID', 1, -1, NULL, 'int', NULL),
('TD_CMS_VOTE_ANSWER', 'ANSER_ID', 1, 0, 'SEQ_TD_CMS_VOTE_ANSWER', 'sequence', NULL),
('TD_CMS_VOTE_IPCTRL', 'id', 1, 0, NULL, 'int', NULL),
('td_cms_vote_items', 'id', 1, 0, NULL, 'int', NULL),
('td_cms_vote_questions', 'id', 1, 0, NULL, 'int', NULL),
('TD_CMS_VOTE_TIMECTRL', 'id', 1, 0, NULL, 'int', NULL),
('TD_CMS_VOTE_TITLE', 'id', 1, 0, NULL, 'int', NULL),
('TD_ESB_BUSINESS_LINE', 'BUSINESS_LINE_ID', 1, 0, NULL, 'uuid', NULL),
('TD_ESB_GLOBAL_PARAM', 'PARAM_ID', 1, 0, NULL, 'uuid', NULL),
('TD_ESB_GROUP', 'GROUP_ID', 1, 0, NULL, 'uuid', NULL),
('TD_ESB_METADATA', 'METADATA_ID', 1, 0, NULL, 'uuid', NULL),
('TD_ESB_METADATA_SET', 'METADATA_SET_ID', 1, 0, NULL, 'uuid', NULL),
('TD_ESB_RESOUCE_PERMISSION', 'resouce_permission_id', 1, 0, '', 'uuid', ''),
('TD_ESB_SERVICE', 'service_id', 1, 0, '', 'uuid', ''),
('TD_ESB_SERVICE_METADATA', 'service_metadata_id', 1, 0, '', 'uuid', ''),
('TD_ESB_SERVICE_RESOURCE', 'id', 1, 0, '', 'uuid', ''),
('TD_ESB_SERVICE_RESOURCE_DETAIL', 'service_res_detail_id', 1, 0, '', 'uuid', ''),
('TD_ESB_SERVICE_RES_CALLED_LOG', 'LOG_ID', 1, 0, NULL, 'uuid', NULL),
('TD_ESB_SERVICE_RES_STATUS_LOG', 'ID', 1, 0, '', 'uuid', ''),
('TD_ESB_SERVICE_STATUS_LOG', 'ID', 1, 0, '', 'uuid', ''),
('td_remindinfo', 'id', 1, 0, NULL, 'int', NULL),
('td_sd_notepaper', 'notepaper_id', 1, 0, 'SEQ_TD_SD_NOTEPAPER', 'sequence', ' '),
('td_sd_notic', 'notic_id', 1, 0, 'SEQ_TD_SD_NOTIC', 'sequence', ' '),
('td_sd_ratifyadvice', 'ratifyadvice_id', 1, 0, 'SEQ_TD_SD_RATIFYADVICE', 'sequence', ' '),
('td_sd_remind', 'remind_id', 1, 0, 'SEQ_TD_SD_REMIND', 'sequence', ' '),
('td_sd_schedular', 'schedular_id', 1, 0, 'SEQ_TD_SD_SCHEDULAR', 'sequence', ' '),
('td_sm_dictdata', 'dictdata_id', 1, 193, 'SEQ_TD_SM_DICTDATA', 'sequence', ' '),
('TD_SM_DICTKEYWORDS', 'KEYWORD_ID', 1, 0, 'SEQ_DICTKEYWORD', 'sequence', ' '),
('td_sm_dicttype', 'dicttype_id', 1, 2312, 'SEQ_TD_SM_DICTTYPE', 'sequence', ' '),
('td_sm_group', 'group_id', 1, 0, 'SEQ_TD_SM_GROUP', 'sequence', ' '),
('td_sm_job', 'job_id', 1, 1, 'SEQ_TD_SM_JOB', 'sequence', ' '),
('TD_SM_LOG', 'LOG_ID', 1, 121, 'SEQ_LOG', 'sequence', ' '),
('TD_SM_LOGDETAIL', 'DETAIL_ID', 1, 0, 'SEQ_LOG_DETAIL', 'sequence', ' '),
('TD_SM_LOGMODULE', 'id', 1, 3, 'SEQ_TD_SM_LOGMODULE', 'sequence', ' '),
('td_sm_organization', 'org_id', 1, 1, 'SEQ_TD_SM_ORGANIZATION', 'sequence', ' '),
('td_sm_res', 'res_id', 1, 0, 'SEQ_TD_SM_RES', 'sequence', ' '),
('td_sm_role', 'role_id', 1, 4, 'SEQ_TD_SM_ROLE', 'sequence', ' '),
('td_sm_roletype', 'type_id', 1, 1, 'SEQ_TD_SM_ROLETYPE', 'sequence', ' '),
('td_sm_user', 'user_id', 1, 1, 'SEQ_TD_SM_USER', 'sequence', ' '),
('tl_cms_doc_oper_log\n', 'id', 1, 0, NULL, 'int', NULL);

转载于:https://my.oschina.net/bboss/blog/638840

//风雨水情查询 private async sendMessage(text?: string) { if (this.textLoading && !text) { this.$message.warning("稍等片刻,等Deepseek回复后再发送哦~"); return; } if (!this.content.trim() && !text) { this.$message.warning("不可发送空消息"); return; } // 接口参数 const params = { query: this.content.trim() || text, user: JSON.parse(sessionStorage.getItem("role")).loginName, inputs: {}, response_mode: "blocking", conversation_id: this.selectId, }; //预案信息 使用streaming模式 if (this.content.includes("预案")) { params.response_mode = "streaming"; this.genericPlan(); return; } if (!text) { // 添加用户消息 this.chartData.push({ type: "self", content: this.content }); } this.scrollToBottom(); this.textLoading = true; this.showBtn = false; try { const res: any = await chartServer.openDeepseek(params); //创建表格 const tableinfo: any = Vue.observable({ type: "table", data: [], AItitle: "", pointType: "", isShow: true, }); const root: any = Vue.observable({ type: "root", content: "", AItitle: "", pointType: "", idnex: 0, }); if (!res) { this.$Bus.$emit("clearAllData"); // 清空其他点位 this.chartData.push(tableinfo); } else { // 普通请求 if (!this.isValidJSON(res.answer)) { root.content = res.answer; root.showType = "markdown"; this.textLoading = false; this.content = ""; this.chartData.push(root); // 添加AI消息 // 获取应该添加多少个流试输出 let num = this.chartData.filter(item => item.type == "root").length - 1; root.idnex = num; this.triggerResponse(res.answer, num); return; } // 天气查询 if (this.content.includes("天气")) { root.content = JSON.parse(res.answer).summary; root.showType = "markdown"; this.textLoading = false; this.content = ""; this.chartData.push(root); // 添加AI消息 // 获取应该添加多少个流试输出 let num = this.chartData.filter(item => item.type == "root").length - 1; root.idnex = num; this.triggerResponse(JSON.parse(res.answer).summary, num); return; } // 判断是查询条数还是查询站点或者资源周边 选择条数需要带上之前会话id if (res.conversation_id) { this.selectId = res.conversation_id; } else { this.selectId = ""; } console.log(9071, JSON.parse(res.answer)); let resat = JSON.parse(res.answer).data; // 定位或者周边选择的数据 let selectedData = JSON.parse(res.answer).selected || []; if (resat.length == 0 && selectedData.length == 0) { tableinfo.isShow = false; this.$Bus.$emit("clearAllData"); // 清空其他点位 } console.log(959, resat, selectedData); // 风雨水气象查询 if (JSON.parse(res.answer).type == "气象查询") { console.log(1278, JSON.parse(res.answer)); this.tableData = resat; // 总结标题 this.AItitle = JSON.parse(res.answer).summary; // 气象查询查数量 if (this.tableData.length) { switch (this.tableData[0].qxtype) { case "sq": this.pointType = "water"; tableinfo.pointType = "water"; this.getNljsListData(this.tableData); break; // 昨日雨情信息 case "hsyq": this.pointType = "rain"; tableinfo.pointType = "rain"; this.getYqjcListData(this.tableData); break; case "yq": this.pointType = "rain"; tableinfo.pointType = "rain"; this.getYqjcListData(this.tableData); break; case "fq": this.pointType = "wind"; tableinfo.pointType = "wind"; this.getfqjcListData(this.tableData); break; //水库水位下降预警 case "xjsw": this.pointType = "waterRegime"; tableinfo.pointType = "waterRegime"; this.getNljsListData(this.tableData); break; case "sksq": this.pointType = "reservoir"; tableinfo.pointType = "reservoir"; this.getNljsListData(this.tableData); break; default: tableinfo.pointType = "noTable"; break; } tableinfo.data = this.tableData; } // 气象查询只有一条数据时直接定位到点位 打开弹框 if (this.tableData.length == 1) { setTimeout(() => { this.clickSingleData(this.tableData[0], tableinfo.pointType); }, 10); } if (this.AItitle) { tableinfo.AItitle = this.AItitle; tableinfo.isShow = true; } } // 周边资源查询 if (JSON.parse(res.answer).type == "资源查询") { console.log(1343, JSON.parse(res.answer)); if (selectedData.length == 0 && resat.length > 0) { if (resat[0].mainType) { this.pointType = resat[0].mainType; tableinfo.pointType = resat[0].mainType; tableinfo.AItitle = resat[0].tabCnName+"查询总数"+resat.length+"条" || ""; console.log(1031, this.pointType, tableinfo.pointType); } else { this.pointType = "queryAssets"; tableinfo.pointType = "queryAssets"; tableinfo.AItitle = "请点击 选择 按钮 或者在下方 输入 查询该条数据的位置信息或者周边资源信息"; } this.$store.state.mapModule.mapObj.centerAtPoint( 114.2373, 23.539, 9, ); //设置视角 tableinfo.data = resat; this.addPositionPoint(resat); console.log(1054, this.pointType, tableinfo.pointType); } //周边资源查询只有一条数据时直接选择第一条 if (selectedData.length == 0 && resat.length == 1) { setTimeout(() => { this.Details(resat[0], 0); }, 10); } } if (JSON.parse(res.answer).type == "选择数据,选择第几条数据") { if (resat.length && resat[0].tabCnName) { tableinfo.data = resat; this.pointType = resat[0].mainType; tableinfo.pointType = resat[0].mainType; tableinfo.AItitle = tableinfo.data.length > 1 ? "选择数据如下" : "该条数据如下"; this.chartData.push(tableinfo); this.checkCenter(resat[0], false); return; } else { switch (resat[0].qxtype) { case "sq": this.pointType = "water"; tableinfo.pointType = "water"; break; case "yq": this.pointType = "rain"; tableinfo.pointType = "rain"; break; case "fq": this.pointType = "wind"; tableinfo.pointType = "wind"; break; case "sksq": this.pointType = "reservoir"; tableinfo.pointType = "reservoir"; break; case "hsyq": this.pointType = "rain"; tableinfo.pointType = "rain"; break; case "xjsw": this.pointType = "waterRegime"; tableinfo.pointType = "waterRegime"; break; default: break; } tableinfo.data = resat.map(item => { return { ...item, isOne: true, id: item.id || item.obtid || item.stcd, tabName: item.qxtype == "sq" ? "waterSituation" : item.qxtype == "yq" ? "yu" : "feng", }; }); console.log(1143, tableinfo.data); // tableinfo.AItitle =tableinfo.data.length > 1? "选择数据如下 总共"+tableinfo.data.length+'条':"该条数据如下"; tableinfo.AItitle = tableinfo.data.length > 1 ? "选择数据如下" : "该条数据如下"; this.clickSingleData(tableinfo.data[0], this.pointType); } } // 选择定位功能 if (selectedData.length > 0 && resat.length == 0) { let itemData = JSON.parse(res.answer).selected[0]; this.pointType = "queryAssets"; tableinfo.pointType = "queryAssets"; this.checkCenter(itemData); tableinfo.AItitle = "已定位至该位置"; tableinfo.data = itemData; } // 周边资源信息 if (selectedData.length > 0 && resat.length > 0) { console.log(1037, "周边周边", resat); this.surroundingsinfo = selectedData[0]; this.pointType = "surroundings"; tableinfo.pointType = "surroundings"; this.radius = JSON.parse(res.answer).radius; this.checkCenter(selectedData[0]); this.addPositionPoint(resat); tableinfo.AItitle = "周边资源数据如下"; tableinfo.data = resat; } //周边资源查询只有一条数据时 直接定位打开弹框 if (resat.length == 1) { this.checkCenter(resat[0], false); } this.chartData.push(tableinfo); } } finally { console.log(895, this.chartData); this.textLoading = false; this.content = ""; this.scrollToBottom(); } }帮我优化以上代码逻辑
最新发布
09-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值