package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 仓库信息表
 * </p>
 *
 * @author XKF
 * @since 2024-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("WAREHOUSEINFO")
@ApiModel(value="Warehouseinfo对象", description="仓库信息表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
@KeySequence(value = "SEQ_WAREHOUSEINFO")
public class Warehouseinfo extends Model<Warehouseinfo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @TableId(value = "AUTOID", type = IdType.INPUT)
    private Long autoid;

    @ApiModelProperty(value = "仓库代码")
    @TableField("WAREHOUSECODE")
    private String warehousecode;

    @ApiModelProperty(value = "仓库名称")
    @TableField("WAREHOUSENAME")
    private String warehousename;

    @ApiModelProperty(value = "仓库类型 - 1 厂库  2 自有库  3 合作库")
    @TableField("WAREHOUSETYPE")
    private Integer warehousetype;

    @ApiModelProperty(value = "所属机构")
    @TableField("AREAUSERID")
    private Long areauserid;

    @ApiModelProperty(value = "仓库状态 - 1:正常 2:注销 3:待审核 4:审核拒绝")
    @TableField("WAREHOUSESTATUS")
    private Integer warehousestatus;

    @ApiModelProperty(value = "国家")
    @TableField("COUNTRYID")
    private Long countryid;

    @ApiModelProperty(value = "省")
    @TableField("PROVINCEID")
    private Long provinceid;

    @ApiModelProperty(value = "市")
    @TableField("CITYID")
    private Long cityid;

    @ApiModelProperty(value = "区")
    @TableField("DISTRICTID")
    private Long districtid;

    @ApiModelProperty(value = "详细地址")
    @TableField("ADDRESS")
    private String address;

    @ApiModelProperty(value = "审核备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATETIME")
    private Date createtime;

    @ApiModelProperty(value = "是否有视频 - 0:无 1:有")
    @TableField("HASVIDEO")
    private Integer hasvideo;

    @ApiModelProperty(value = "视频地址")
    @TableField("VIDEOURL")
    private String videourl;

    @ApiModelProperty(value = "联系人")
    @TableField("CONTACTNAME")
    private String contactname;

    @ApiModelProperty(value = "联系电话")
    @TableField("CONTACTNUM")
    private String contactnum;

    @ApiModelProperty(value = "国家/地区（广钻）")
    @TableField("COUNTRYSTR")
    private String countrystr;

    @ApiModelProperty(value = "城市（广钻）")
    @TableField("CITYSTR")
    private String citystr;


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

}
