Commit ecda5133 authored by ZWT's avatar ZWT

feat(零碳): 长庆

1.对接第三方接口,接入第三方数据,完成Token接口验证,抽取公用方法封装调用工具类;
2.对接第三方接口,完成获取日耗电日产液等信息接口调用,创建数据表,同时生成对应代码,开发定时任务及对外接口,完成第三方数据接入及系统展示功能,添加线上接口文档并完成接口及定时任务冒烟测试;
3.对接第三方接口,完成获取有功功率数据信息接口调用,创建数据表,同时生成对应代码,开发定时任务及对外接口,完成第三方数据接入及系统展示功能,添加线上接口文档并完成接口及定时任务冒烟测试;
4.对接第三方接口,完成获取甘特图数据接口调用,创建数据表,同时生成对应代码,开发定时任务及对外接口,完成第三方数据接入及系统展示功能,添加线上接口文档并完成接口及定时任务冒烟测试;
5.对接第三方接口,完成本日累计数据接口调用,创建数据表,同时生成对应代码,开发定时任务及对外接口,完成第三方数据接入及系统展示功能,添加线上接口文档并完成接口及定时任务冒烟测试;
6.对接第三方接口,完成光伏发电量接口调用,创建数据表,同时生成对应代码,开发定时任务及对外接口,完成第三方数据接入及系统展示功能,添加线上接口文档并完成接口及定时任务冒烟测试;
7.对接第三方接口,完成三叠登录接口调用,添加线上接口文档并完成接口及定时任务冒烟测试;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 7066c891
package pps.core.prediction.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import xstartup.annotation.XText;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 第三方有功功率(每日最新数据)
*
* @author ZWT
* @date 2024/03/19
*/
@Data
@TableName("third_active_power_daily_update")
public class ThirdActivePowerDailyUpdateEnt implements Serializable {
@XText("ID")
@TableId(type = IdType.AUTO)
private Long id;
@XText("井组名称(线路/光伏电站)")
@TableField
private String stationName;
@XText("创建时间")
@TableField
private Date createDate;
@XText("光伏有功功率(KW)")
@TableField
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
@TableField
private BigDecimal meterPower;
@XText("来源系统")
@TableField
private String systemSource;
@XText("入库日期")
@TableField
private Date saveDate;
}
package pps.core.prediction.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import xstartup.annotation.XText;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 第三方有功功率(每日最新数据)
*
* @author ZWT
* @date 2024/03/19
*/
@Data
public class ThirdActivePowerDailyUpdateView implements Serializable {
@XText("ID")
@TableField
private Long id;
@XText("井组名称(线路/光伏电站)")
@TableField
private String stationName;
@XText("创建时间")
@TableField
private Date createDate;
@XText("光伏有功功率(KW)")
@TableField
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
@TableField
private BigDecimal meterPower;
@XText("来源系统")
@TableField
private String systemSource;
@XText("入库日期")
@TableField
private Date saveDate;
}
package pps.core.prediction.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import pps.core.prediction.entity.ThirdActivePowerDailyUpdateEnt;
/**
* 第三方有功功率(每日最新数据)
*
* @author ZWT
* @date 2024/03/19
*/
@Repository(value = "pps.core.prediction.mapper.ThirdActivePowerDailyUpdateMapper")
public interface ThirdActivePowerDailyUpdateMapper extends BaseMapper<ThirdActivePowerDailyUpdateEnt> {
}
package pps.core.prediction.mapper;
import org.springframework.stereotype.Repository;
import pps.core.prediction.entity.ThirdActivePowerDailyUpdateView;
import java.util.List;
/**
* 第三方有功功率(每日最新数据)
*
* @author ZWT
* @date 2024/03/19
*/
@Repository(value = "pps.core.prediction.mapper.ThirdActivePowerDailyUpdateViewMapper")
public interface ThirdActivePowerDailyUpdateViewMapper {
ThirdActivePowerDailyUpdateView selectOne(ThirdActivePowerDailyUpdateView record);
List<ThirdActivePowerDailyUpdateView> selectList(ThirdActivePowerDailyUpdateView record);
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
public class CreateThirdActivePowerDailyUpdateInput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
public class CreateThirdActivePowerDailyUpdateOutput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
public class DeleteThirdActivePowerDailyUpdateInput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
public class DeleteThirdActivePowerDailyUpdateOutput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
public class DynamicQueryThirdActivePowerDailyUpdateInput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
public class DynamicQueryThirdActivePowerDailyUpdateOutput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
public class DynamicQueryThirdActivePowerDailyUpdateViewOutput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
public class GetThirdActivePowerDailyUpdateInput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
public class GetThirdActivePowerDailyUpdateOutput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
public class GetThirdActivePowerDailyUpdateViewInput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
public class GetThirdActivePowerDailyUpdateViewOutput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
import xstartup.base.data.XPageInput;
public class QueryThirdActivePowerDailyUpdateInput extends XPageInput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
import xstartup.base.data.XPageInput;
public class QueryThirdActivePowerDailyUpdateOutput extends XPageInput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
import xstartup.base.data.XPageInput;
public class QueryThirdActivePowerDailyUpdateViewInput extends XPageInput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
import xstartup.base.data.XPageInput;
public class QueryThirdActivePowerDailyUpdateViewOutput extends XPageInput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
public class UpdateThirdActivePowerDailyUpdateInput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
package pps.core.prediction.service.data.third_active_power_daily_update;
import xstartup.annotation.XText;
import java.util.Date;
import java.math.BigDecimal;
public class UpdateThirdActivePowerDailyUpdateOutput {
@XText("ID")
private Long id;
@XText("井组名称(线路/光伏电站)")
private String stationName;
@XText("创建时间")
private Date createDate;
@XText("光伏有功功率(KW)")
private BigDecimal photovoltaicPower;
@XText("电表有功功率(KW)")
private BigDecimal meterPower;
@XText("来源系统")
private String systemSource;
public Long getId() {
return this.id;
}
public void setId(Long value) {
this.id = value;
}
public String getStationName() {
return this.stationName;
}
public void setStationName(String value) {
this.stationName = value;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date value) {
this.createDate = value;
}
public BigDecimal getPhotovoltaicPower() {
return this.photovoltaicPower;
}
public void setPhotovoltaicPower(BigDecimal value) {
this.photovoltaicPower = value;
}
public BigDecimal getMeterPower() {
return this.meterPower;
}
public void setMeterPower(BigDecimal value) {
this.meterPower = value;
}
public String getSystemSource() {
return this.systemSource;
}
public void setSystemSource(String value) {
this.systemSource = value;
}
}
......@@ -2,6 +2,7 @@ package pps.core.prediction.utils;
import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.text.CharSequenceUtil;
import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject;
......@@ -10,6 +11,7 @@ import pps.core.common.cache.ThirdPartyConfigCache;
import pps.core.prediction.constant.ThirdPartyApiConstant;
import xstartup.base.XContext;
import xstartup.base.XStartup;
import xstartup.base.exception.XServiceException;
import xstartup.base.util.XHttpUtils;
import java.util.HashMap;
......@@ -80,6 +82,9 @@ public class ServiceUtil {
String result = XHttpUtils.postAsForm(url, param);
JSONObject jsonObject = JSON.parseObject(result);
String token = jsonObject.getString("token");
if (CharSequenceUtil.isBlank(token)) {
throw new XServiceException("获取长庆Token失败");
}
ServiceUtil.setThirdPartyConfigCache(context, token);
return token;
}
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="pps.core.prediction.mapper.ThirdActivePowerDailyUpdateViewMapper">
<resultMap id="BaseResultMap" type="pps.core.prediction.entity.ThirdActivePowerDailyUpdateView">
<id column="id" property="id" jdbcType="BIGINT"/>
<result column="station_name" property="stationName" jdbcType="VARCHAR"/>
<result column="create_date" property="createDate" jdbcType="DATE"/>
<result column="photovoltaic_power" property="photovoltaicPower" jdbcType="DECIMAL"/>
<result column="meter_power" property="meterPower" jdbcType="DECIMAL"/>
<result column="system_source" property="systemSource" jdbcType="VARCHAR"/>
<result column="save_date" property="saveDate" jdbcType="DATE"/>
</resultMap>
<sql id="Base_Column_List">
id
,
station_name,
create_date,
photovoltaic_power,
meter_power,
system_source,
save_date
</sql>
<select id="selectOne" parameterType="pps.core.prediction.entity.ThirdActivePowerDailyUpdateView"
resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from third_active_power_daily_update
where
id=#{id}
</select>
<select id="selectList" parameterType="pps.core.prediction.entity.ThirdActivePowerDailyUpdateView"
resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from third_active_power_daily_update
where
id=#{id}
</select>
</mapper>
\ No newline at end of file
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