Commit 3fe9a2df authored by tangwei's avatar tangwei

定时同步数据

parent 82178a0c
package com.yeejoin.amos.boot.module.jxiop.biz.ESDto;
import com.baomidou.mybatisplus.annotation.TableField;
import io.github.classgraph.json.Id;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import java.util.Date;
/**
* @description:
* @author: tw
* @createDate: 2023/8/9
*/
@Data
@Accessors(chain = true)
@Document(indexName = "jxiop_dailyPowerGeneration")
public class ESDailyPowerGeneration extends ESEquipments {
@Field(type = FieldType.Keyword )
private String stationType;//场站类型
@Field(type = FieldType.Keyword )
private String day;//时间标识
}
package com.yeejoin.amos.boot.module.jxiop.biz.ESDto;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
/**
* @description:
* @author: tw
* @createDate: 2023/8/9
*/
@Data
@Accessors(chain = true)
@Document(indexName = "jxiop_moonPowerGeneration")
public class ESMoonPowerGeneration extends ESEquipments{
@Field(type = FieldType.Keyword )
private String stationType;//场站类型
@Field(type = FieldType.Keyword )
private String day;//时间标识
}
package com.yeejoin.amos.boot.module.jxiop.biz.ESDto;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
/**
* @description:
* @author: tw
* @createDate: 2023/8/9
*/
@Data
@Accessors(chain = true)
@Document(indexName = "jxiop_yearPowerGeneration")
public class ESYearPowerGeneration extends ESEquipments{
@Field(type = FieldType.Keyword )
private String stationType;//场站类型
@Field(type = FieldType.Keyword )
private String day;//时间标识
}
package com.yeejoin.amos.boot.module.jxiop.biz.scheduled;
/**
* @description:
* @author: tw
* @createDate: 2023/8/9
*/
public class PowerGeneration {
}
...@@ -122,6 +122,11 @@ public class CommonServiceImpl { ...@@ -122,6 +122,11 @@ public class CommonServiceImpl {
/** /**
* @deprecated 获取指标值总和 * @deprecated 获取指标值总和
* @param gatewayId 网关id 用于拼接sql语句 * @param gatewayId 网关id 用于拼接sql语句
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment