package com.yeejoin.amos.boot.module.hygf.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * 统计所有功率
 *
 * @author system_generator
 * @date 2023-09-20
 */
@Data
@Accessors(chain = true)
@TableName("td_hygf_station_power_all")
public class AllPower  {

    private static final long serialVersionUID = 1L;
    @TableId(value = "created_time")
    private Long createdTime;
    /**
     * 第三方电站id
     */
	@TableField("third_station_id")
    private String thirdStationId;

    /**
     * 年
     */
	@TableField("year")
    private String year;

    /**
     * 平均功率
     */
	@TableField("power")
    private Double power;


    public AllPower() throws InterruptedException{

        Thread.sleep(0L,1);

        this.createdTime=System.currentTimeMillis();
        LocalDateTime now = LocalDateTime.now();
        DateTimeFormatter formatter1 = DateTimeFormatter.ofPattern("YYYY");
        String formattedDate1 = now.format(formatter1);
        this.year = formattedDate1;

    }


}
