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;

/**
 * <p>
 * 市场节假日年份表
 * </p>
 *
 * @author XKF
 * @since 2025-08-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("MARKETCALENDARYEAR")
@ApiModel(value="Marketcalendaryear对象", description="市场节假日年份表")
public class Marketcalendaryear extends Model<Marketcalendaryear> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "市场ID")
    @TableId(value = "MARKETID", type = IdType.AUTO)
    private Long marketid;

    @ApiModelProperty(value = "年份(yyyy) ")
    @TableField("YEAR")
    private String year;

    @ApiModelProperty(value = "是否全年无休 - 0:不是 1:是")
    @TableField("ISALLYEAR")
    private Integer isallyear;


    @Override
    public Serializable pkVal() {
        return this.marketid;
    }

}
