package cn.pluss.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 邮费信息配置表
 * </p>
 *
 * @author crystal
 * @since 2022-03-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_pluss_postage_config")
public class PostageConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final BigDecimal WEIGHT_UNIT = BigDecimal.ONE;

    public static final String STATUS_NO = "0";

    public static final String STATUS_YES = "1";

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


    /**
     * 区域Code
     */
    @TableField("areaCode")
    private String areaCode;

    /**
     * 区域名称
     */
    @TableField(value = "areaName",whereStrategy = FieldStrategy.NOT_EMPTY,condition = SqlCondition.LIKE)
    private String areaName;


    @TableField("areaLevel")
    private String areaLevel;


    /**
     * 首重 xx/1kg
     */
    @TableField("firstWeight")
    private BigDecimal firstWeight;


    /**
     * 续重 xx/1kg
     */
    @TableField("nextWeight")
    private BigDecimal nextWeight;


    /**
     * 备注
     */
    @TableField("remark")
    private String remark;


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

    /**
     * 创建时间 开始时间
     */
    @TableField(exist = false, condition = "createTime &gt; #{%s}")
    private Date createTimeStart;

    /**
     * 创建时间 截止时间
     */
    @TableField(exist = false, condition = "createTime &lt; #{%s}")
    private Date createTimeEnd;

    /**
     * 启用 状态1：启用 0：不启用
     */
    private String status;

}