package com.muchinfo.mtp3pojos.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 com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 夏令时分组时间配置表
 * </p>
 *
 * @author XKF
 * @since 2025-08-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SUMMERTIMEGROUPCONFIG")
@ApiModel(value="Summertimegroupconfig对象", description="夏令时分组时间配置表")
public class Summertimegroupconfig extends Model<Summertimegroupconfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "夏令时分组ID")
    private Long groupid;

    @ApiModelProperty(value = "年份")
    @TableField("SUMMERYEAR")
    private Integer summeryear;

    @ApiModelProperty(value = "开时日期(yyyyMMdd)")
    @TableField("STARTDATE")
    private String startdate;

    @ApiModelProperty(value = "结束日期(yyyyMMdd)")
    @TableField("ENDDATE")
    private String enddate;

    @TableField(select = false)
    private Integer oldSummerYear;
    @Override
    public Serializable pkVal() {
        return this.groupid;
    }

}
