【新增功能】 集成 tdengine
This commit is contained in:
parent
05c5482715
commit
61a0c05279
|
@ -2,13 +2,6 @@ package cn.iocoder.yudao.module.iot.domain;
|
|||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @ClassDescription: tdEngine的基础实体类
|
||||
* @ClassName: BaseEntity
|
||||
* @Author: fxlinks
|
||||
* @Date: 2021-12-30 14:39:25
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -2,13 +2,6 @@ package cn.iocoder.yudao.module.iot.domain;
|
|||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @ClassDescription: 建表的字段实体类
|
||||
* @ClassName: Fields
|
||||
* @Author: fxlinks
|
||||
* @Date: 2021-12-28 09:09:04
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class Fields {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -6,13 +6,6 @@ import java.sql.SQLException;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassDescription: 建表的字段实体类的vo类
|
||||
* @ClassName: FieldsVo
|
||||
* @Author: fxlinks
|
||||
* @Date: 2021-12-28 11:30:06
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class FieldsVo {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
@ -32,13 +25,6 @@ public class FieldsVo {
|
|||
*/
|
||||
private Integer size;
|
||||
|
||||
/**
|
||||
* @param fields 字段实体类
|
||||
* @return FieldsVo 字段实体vo类
|
||||
* @MethodDescription 字段实体类转为vo类
|
||||
* @author fx
|
||||
* @Date 2021/12/28 13:48
|
||||
*/
|
||||
public static FieldsVo fieldsTranscoding(Fields fields) throws SQLException {
|
||||
// if (StringUtils.isBlank(fields.getFieldName()) || fields.getDataType() == null) {
|
||||
// throw new SQLException("invalid operation: fieldName or dataType can not be null");
|
||||
|
@ -51,13 +37,6 @@ public class FieldsVo {
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param fieldsList 字段实体类集合
|
||||
* @return List<FieldsVo> 字段实体vo类集合
|
||||
* @MethodDescription 字段实体类集合转为vo类集合
|
||||
* @author fx
|
||||
* @Date 2021/12/28 14:00
|
||||
*/
|
||||
public static List<FieldsVo> fieldsTranscoding(List<Fields> fieldsList) throws SQLException {
|
||||
List<FieldsVo> fieldsVoList = new ArrayList<>();
|
||||
for (Fields fields : fieldsList) {
|
||||
|
|
|
@ -7,21 +7,11 @@ import java.sql.Timestamp;
|
|||
import java.util.HashMap;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* @Description: 产品超级表模型
|
||||
* @Author: fx
|
||||
* @Website: http://www.sxfxck.com
|
||||
* @CreateDate: 2022/1/1$ 19:37$
|
||||
* @UpdateUser: fx
|
||||
* @UpdateDate: 2022/1/1$ 19:37$
|
||||
* @UpdateRemark: 修改内容
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
public class ProductSuperTableModel {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS" , timezone = "GMT+8")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS", timezone = "GMT+8")
|
||||
private Timestamp ts;
|
||||
|
||||
private String superTableName;
|
||||
|
|
|
@ -4,13 +4,6 @@ import lombok.Data;
|
|||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @ClassDescription: 查询所需入参对象
|
||||
* @ClassName: SelectDto
|
||||
* @Author: fxlinks
|
||||
* @Date: 2022-01-07 14:12:26
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class SelectDto {
|
||||
|
||||
|
|
|
@ -4,13 +4,6 @@ import lombok.Data;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassDescription: 创建超级表需要的入参的实体类
|
||||
* @ClassName: SuperTableDto
|
||||
* @Author: fxlinks
|
||||
* @Date: 2021-12-28 15:03:45
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class SuperTableDto extends BaseEntity {
|
||||
|
||||
|
|
|
@ -4,13 +4,6 @@ import lombok.Data;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassDescription: 创建超级表的子表需要的入参的实体类
|
||||
* @ClassName: TableDto
|
||||
* @Author: fxlinks
|
||||
* @Date: 2021-12-30 14:42:47
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class TableDto extends BaseEntity {
|
||||
|
||||
|
|
|
@ -3,24 +3,16 @@ package cn.iocoder.yudao.module.iot.domain;
|
|||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @program: fxlinks
|
||||
* @description: 标签查询模型
|
||||
* @packagename: com.fx.tdengine.api.domain.rule
|
||||
* @author: fx
|
||||
* @e-mainl: 13733918655@163.com
|
||||
* @date: 2022-07-27 18:40
|
||||
**/
|
||||
@Data
|
||||
public class TagsSelectDao {
|
||||
|
||||
// @NotBlank(message = "invalid operation: dataBaseName can not be empty")
|
||||
// @NotBlank(message = "invalid operation: dataBaseName can not be empty")
|
||||
private String dataBaseName;
|
||||
|
||||
// @NotBlank(message = "invalid operation: stableName can not be empty")
|
||||
// @NotBlank(message = "invalid operation: stableName can not be empty")
|
||||
private String stableName;
|
||||
|
||||
// @NotBlank(message = "invalid operation: tagsName can not be empty")
|
||||
// @NotBlank(message = "invalid operation: tagsName can not be empty")
|
||||
private String tagsName;
|
||||
|
||||
// @NotNull(message = "invalid operation: startTime can not be null")
|
||||
|
|
Loading…
Reference in New Issue