package com.jeequan.jeepay.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.jeequan.jeepay.core.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 法定节假日配置表
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2023-09-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_sys_legal_day")
public class SysLegalDay extends BaseModel {

    private static final long serialVersionUID=1L;

    public static final LambdaQueryWrapper<SysLegalDay> gw(){
        return new LambdaQueryWrapper<>();
    }

    public static String DATE_TYPE_HOLIDAY ="holiday";
    public static String DATE_TYPE_WORKDAY = "workday";

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 日期类型 holiday-节假日 workday-工作日
     */
    private String dateType;

    /**
     * 日期
     */
    private Date dateValue;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;


}
