摘要: 一、背景 业务需求 需要这种 二、实现 `` 点击查看代码 <el-table ref="singleTableRef" highlight-current-row border :data="state.personData" class="data-table" max-height="600" 阅读全文
posted @ 2024-01-08 11:24 林财钦 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 一、背景 二、实现 模版 influx_inspect export -datadir "D:/WindowsService/Influxdb/data" -waldir "D:/WindowsService/Influxdb/wal" -out "D:/202311_lcq" -database 阅读全文
posted @ 2023-12-15 15:31 林财钦 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 一、背景 这几天数据中了病毒,服务器被黑,Mysql数据库遭比特币勒索!!!数据库有开启 binlog 那就还有恢复的可能。那么恭喜你可以参考这篇文章https://zhuanlan.zhihu.com/p/311435595 如果没有开启,那没办法了,只能吃一堑长一智,要么数据库做同步【做新增、修 阅读全文
posted @ 2023-12-15 11:09 林财钦 阅读(18) 评论(0) 推荐(0) 编辑
摘要: npm install --registry=https://registry.npmmirror.com 阅读全文
posted @ 2023-12-13 09:47 林财钦 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 一、背景 二、实现 @Autowired private EntityManager entityManager; Query query = entityManager.createNativeQuery(sql); query.unwrap(SQLQuery.class).setResultTr 阅读全文
posted @ 2023-12-07 14:19 林财钦 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 一、背景 二、实现 第一种:使用Mybatis,纯sql插入(推荐使用) 动态创建Sql拼接 在Mapper接口种指定该方法 @InsertProvider(type = AutoCreateReport.class, method = "insertSelectSqlFun") public vo 阅读全文
posted @ 2023-12-06 20:10 林财钦 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 一、背景 二、实现 select * from ( select sum(value) as val from history_data where parameter_id = '512432211656617105' or parameter_id = '512432211656637048' 阅读全文
posted @ 2023-12-06 20:02 林财钦 阅读(124) 评论(0) 推荐(0) 编辑
摘要: QueryResult countResults = influxDBConfig.query(selectSql.toString()); QueryResult results = influxDBConfig.query(selectSql.toString()); List<KeyValue 阅读全文
posted @ 2023-12-06 20:01 林财钦 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 一、背景 开局先说一句!!!! 好坑!!!!!,我遇到的空白页面的问题,不是路由懒加载的原因,是在点击路由完整的状态下,点击菜单跳转页面,出现的空白页面,不能触发页面中任何钩子函数,但是路由是跳了的,重新刷新页面,页面内容即可出现,而且空白出现率相当高。打开浏览器控制台和项目控制台都不报错 ,我能想 阅读全文
posted @ 2023-11-28 14:34 林财钦 阅读(615) 评论(0) 推荐(0) 编辑
摘要: 一、背景 vue 通过前端代理后端,不想暴露后端端口.所以使用前端代理. 二、实现 解决 nginx增加两句代码 一. error_page 405 =200 @405; #405页面处理 二. #加入下面代码 location @405 { proxy_set_header Host $host; 阅读全文
posted @ 2023-11-28 11:37 林财钦 阅读(155) 评论(0) 推荐(0) 编辑