package cn.com.countrygarden.bi.main.dto.ck;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
public class CkCleanerDataConfigDTO implements Comparable<CkCleanerDataConfigDTO>{

    private Integer basicId;

    /**
     * 区域编码
     */
    private String orgCode;
    /**
     * 区域名称
     */
    @Excel(name = "区域名称", width = 25)
    private String orgName;
    /**
     * 项目编码
     */
    private String commCode;
    /**
     * 项目名称
     */
    @Excel(name = "项目名称", width = 25)
    private String commName;
    /**
     * 月份
     */
    @Excel(name = "月份", width = 25)
    private String month;
    /**
     * 年份
     */
    @Excel(name = "年份", width = 25)
    private String year;


    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    private List<Map<String,String>> dataConfig;

    @Override
    public int compareTo(CkCleanerDataConfigDTO a) {
      // return a.getUpdateTime().compareTo();//倒序

        return this.updateTime.compareTo(a.getUpdateTime());

    }

}
