初次提交
This commit is contained in:
24
td-service-api/pom.xml
Normal file
24
td-service-api/pom.xml
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>ho-cloud</artifactId>
|
||||
<groupId>com.hoenergy</groupId>
|
||||
<version>1.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>td-service-api</artifactId>
|
||||
<properties>
|
||||
<common-tools.version>1.0</common-tools.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<!--工具类-->
|
||||
<dependency>
|
||||
<groupId>com.hoenergy</groupId>
|
||||
<artifactId>common-tools</artifactId>
|
||||
<version>${common-tools.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,21 @@
|
||||
package com.ho.td.api.entity;
|
||||
|
||||
import com.ho.td.api.entity.query.DeviceIdAndTypeVo;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: TD设备基础对象
|
||||
* @date 2023/1/18
|
||||
*/
|
||||
@Data
|
||||
public class TdDeviceIdEntity {
|
||||
|
||||
Integer stationId;
|
||||
|
||||
//设备id list 改为复合对象
|
||||
//List<Integer> srcIdList;
|
||||
List<DeviceIdAndTypeVo> deviceIdAndTypeVos;
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.ho.td.api.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc:
|
||||
* @date 2023/4/6
|
||||
*/
|
||||
@Data
|
||||
public class TransferDbReq {
|
||||
String fromTable;
|
||||
String toTable;
|
||||
String tableName;
|
||||
String superTableName;
|
||||
Integer groupId;
|
||||
Integer stationId;
|
||||
Integer srcId;
|
||||
String suffix;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.ho.td.api.entity.elecMeter;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @Description 电表的电量
|
||||
* Author yule
|
||||
* Date 2023/4/17 15:06
|
||||
*/
|
||||
@Data
|
||||
public class ElecPowerGeneration {
|
||||
//当日发电量
|
||||
BigDecimal todayChargePowerGeneration;
|
||||
//当日放电量
|
||||
BigDecimal todayDisChargePowerGeneration;
|
||||
//设备id
|
||||
Integer srcId;
|
||||
//站id
|
||||
Integer stationId;
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.ho.td.api.entity.inverter;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @Description 当年开始时间和当月开始时间的发电量
|
||||
* Author yule
|
||||
* Date 2023/3/3 14:17
|
||||
*/
|
||||
@Data
|
||||
public class InverterCurrent {
|
||||
|
||||
//当月开始时间发电量
|
||||
BigDecimal currentMonthPowerGeneration;
|
||||
//当年开始时间发电量
|
||||
BigDecimal currentYearPowerGeneration;
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.ho.td.api.entity.inverter;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 逆变器发电量定时对象
|
||||
* @date 2023/1/18
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
public class InverterTimingGenerate implements Serializable {
|
||||
|
||||
Integer stationId;
|
||||
Integer srcId;
|
||||
//发电量
|
||||
BigDecimal powerGeneration;
|
||||
//加工时间
|
||||
Date processTime;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package com.ho.td.api.entity.query;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 每个设备包含的id和类型
|
||||
* @date 2023/2/16
|
||||
*/
|
||||
@Data
|
||||
public class DeviceIdAndTypeVo {
|
||||
|
||||
//设备id
|
||||
Integer srcId;
|
||||
//设备类型
|
||||
String deviceType;
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package com.ho.td.api.entity.query;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 直接定位到某个表进行查询
|
||||
* @date 2022/9/5
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@ToString
|
||||
public class QueryTableVO implements Serializable {
|
||||
|
||||
//表名
|
||||
String table;
|
||||
//多少条
|
||||
Integer limit ;
|
||||
//从哪条开始
|
||||
Integer offset;
|
||||
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package com.ho.td.api.entity.query;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @Author yule
|
||||
* @Date 2024/3/18 9:36
|
||||
* @desc ${}
|
||||
*/
|
||||
@Data
|
||||
public class ResultData {
|
||||
|
||||
Long ts;
|
||||
|
||||
BigDecimal col;
|
||||
String colName;
|
||||
|
||||
String sTableName;
|
||||
String tableName;
|
||||
|
||||
Integer groupId;
|
||||
Integer stationId;
|
||||
Integer srcId;
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
package com.ho.td.api.entity.query;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 充电桩 充电枪汇总数据
|
||||
* @date 2022/10/24
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
public class SummaryChargePile implements Serializable {
|
||||
//电站id
|
||||
private Integer stationId;
|
||||
//类型,建pv_energy_value类型
|
||||
private String type;
|
||||
//日期
|
||||
private String day;
|
||||
//日汇总
|
||||
private BigDecimal digital;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,88 @@
|
||||
package com.ho.td.api.entity.query;
|
||||
|
||||
import com.ho.common.tools.entity.PointCurveSrcCol;
|
||||
import com.ho.td.api.entity.TdDeviceIdEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 定时批量加工设备数据(设备是泛指)
|
||||
* @date 2023/1/18
|
||||
*/
|
||||
@Data
|
||||
public class TdBaseTimeQuery {
|
||||
//
|
||||
Integer groupId;
|
||||
//设备类型
|
||||
String deviceType;
|
||||
|
||||
//开始时间,可以为空
|
||||
String beginTime;
|
||||
|
||||
//结束时间,可以为空
|
||||
String endTime;
|
||||
|
||||
//当前时间
|
||||
Date end;
|
||||
//当日的零点时间
|
||||
Date begin;
|
||||
//Long型时间格式
|
||||
Long beginLong;
|
||||
|
||||
Long endLong;
|
||||
|
||||
//时间间隔 单位:分钟 15分钟:15 , 60分钟:60m,开始时间和结束时间可以是调用方赋值,也可以是在td-service方法中计算赋值
|
||||
Integer timeInterval;
|
||||
|
||||
String time;
|
||||
|
||||
//包含stationId和 srcIdList对象的集合
|
||||
List<TdDeviceIdEntity> tdDeviceIds;
|
||||
|
||||
//需要查询的字段逆变器所对应的字段
|
||||
Map<String, String> colNameMap;
|
||||
|
||||
//对应的srcId modelname(大表小表)
|
||||
Map<String, String> modelNameMap;
|
||||
|
||||
//单个字段
|
||||
String col;
|
||||
|
||||
//多个src
|
||||
List<Integer> srcList;
|
||||
|
||||
|
||||
//src col
|
||||
Map<Integer, String> map;
|
||||
|
||||
//
|
||||
Integer stationId;
|
||||
|
||||
Integer srcId;
|
||||
|
||||
|
||||
List<PointCurveSrcCol> deviceIdList;
|
||||
|
||||
//开始条数
|
||||
Integer beginNum;
|
||||
|
||||
//条数
|
||||
Integer pageSize;
|
||||
|
||||
//模型名称
|
||||
String modelName;
|
||||
|
||||
//表名
|
||||
String tableName;
|
||||
|
||||
//是否是异常数据,默认否
|
||||
Boolean isError;
|
||||
|
||||
/************2024-07-17为修改历史值******************/
|
||||
Map<String, BigDecimal> colValMap;
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
package com.ho.td.api.entity.query;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @Author yule
|
||||
* @Date 2024/3/15 16:51
|
||||
* @desc ${}
|
||||
*/
|
||||
@Data
|
||||
public class UpdateTdReq {
|
||||
|
||||
@ApiModelProperty(value = "表名")
|
||||
@NotEmpty(message = "表名不能为空")
|
||||
String tableName;
|
||||
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
@NotEmpty(message = "开始时间不能为空")
|
||||
String startTime;
|
||||
|
||||
@ApiModelProperty(value = "结束时间")
|
||||
@NotEmpty(message = "结束时间不能为空")
|
||||
String endTime;
|
||||
|
||||
@ApiModelProperty(value = "修改字段")
|
||||
@NotEmpty(message = "修改字段不能为空")
|
||||
String col;
|
||||
|
||||
@ApiModelProperty(value = "修改倍数")
|
||||
@NotEmpty(message = "修改倍数不能为空")
|
||||
BigDecimal multiple;
|
||||
|
||||
@ApiModelProperty(value = "运算类型,1:加 2:减 3:乘 4:除")
|
||||
@NotEmpty(message = "运算类型不能为空")
|
||||
Integer type;
|
||||
|
||||
|
||||
String sTableName;
|
||||
|
||||
Integer groupId;
|
||||
Integer stationId;
|
||||
Integer srcId;
|
||||
|
||||
Long start;
|
||||
|
||||
Long end;
|
||||
}
|
||||
Reference in New Issue
Block a user