摘要: 一、背景 二、实现 第一种:使用Mybatis,纯sql插入(推荐使用) 动态创建Sql拼接 在Mapper接口种指定该方法 @InsertProvider(type = AutoCreateReport.class, method = "insertSelectSqlFun") public vo 阅读全文
posted @ 2023-12-06 20:10 林财钦 阅读(18) 评论(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 林财钦 阅读(141) 评论(0) 推荐(0) 编辑
摘要: QueryResult countResults = influxDBConfig.query(selectSql.toString()); QueryResult results = influxDBConfig.query(selectSql.toString()); List<KeyValue 阅读全文
posted @ 2023-12-06 20:00 林财钦 阅读(18) 评论(0) 推荐(0) 编辑