package cn.pluss.platform.entity;

import cn.pluss.platform.config.mybatis.SqlConditionExtra;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 瑞银信进件，地区编码
 * </p>
 *
 * @author Djh
 * @since 2021-01-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_pluss_region_code_ryx")
public class RegionCodeRyx implements Serializable {

    private static final long serialVersionUID = 1L;

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


    /**
     * 省名称
     */
    @TableField("province")
    private String province;


    /**
     * 省编码
     */
    @TableField("provinceCode")
    private String provinceCode;


    /**
     * 市名称
     */
    @TableField("city")
    private String city;


    /**
     * 市编码
     */
    @TableField("cityCode")
    private String cityCode;


    /**
     * 县/区名称
     */
    @TableField("area")
    private String area;


    /**
     * 县/区编码
     */
    @TableField("areaCode")
    private String areaCode;


    /**
     * 创建时间
     */
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建时间 开始时间
     */
    @TableField(select = false, value = "createTime", condition = SqlConditionExtra.GT)
    private Date createTimeStart;

    /**
     * 创建时间 截止时间
     */
    @TableField(select = false, value = "createTime", condition = SqlConditionExtra.LT)
    private Date createTimeEnd;

}