package com.bs.jxc.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.bs.common.annotation.Excel;
import com.bs.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
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 io.swagger.annotations.ApiModelProperty;

/**
 * 仓库信息对象 cm_warehouse
 *
 * @author bs
 * @date 2023-08-06
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("cm_warehouse")
@Data
public class CmWarehouse extends BaseEntity{
    private static final long serialVersionUID = 1L;

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

    /** 仓库代码 */

    @Excel(name = "仓库代码")
    @ApiModelProperty(value = "仓库代码")
    private String stockCode;

    /** 仓库名称 */

    @Excel(name = "仓库名称")
    @ApiModelProperty(value = "仓库名称")
    private String stockName;

    /** 仓库有效期起 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "仓库有效期起", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "仓库有效期起")
    private Date validityStart;

    /** 仓库有效期止 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "仓库有效期止", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "仓库有效期止")
    private Date validityEnd;

    /** 备注 */

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;


    @TableField(exist = false)
    private String isExpire;

}
