package com.muchinfo.mtp3pojos.entity;

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 com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
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 XKF
 * @since 2025-09-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("HSBY_GOODSEX")
@ApiModel(value="HsbyGoodsex对象", description="商品扩展表(海商报业)")
public class HsbyGoodsex extends Model<HsbyGoodsex> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商 品ID")
    private Long goodsid;

    @ApiModelProperty(value = "景点热度")
    @TableField("HOTINDEX")
    private Integer hotindex;

    @ApiModelProperty(value = "目的地(省)")
    @TableField("DESCPROVINCEID")
    private Long descprovinceid;

    @ApiModelProperty(value = "目的地(市)")
    @TableField("DESCCITYID")
    private Long desccityid;

    @ApiModelProperty(value = "供应商ID")
    @TableField("VENDORID")
    private Long vendorid;

    @ApiModelProperty(value = "商品详情")
    @TableField("GOODSDESC")
    private String goodsdesc;

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

    @ApiModelProperty(value = "创建人")
    @TableField("CREATORID")
    private Long creatorid;

    @ApiModelProperty(value = "修改人")
    @TableField("MODIFIERID")
    private Long modifierid;

    @ApiModelProperty(value = "修改时间")
    @TableField("MODIFYTIME")
    private Date modifytime;

    @ApiModelProperty(value = "会员货款比例 [71]")
    @TableField("MEMBERRATIO")
    private BigDecimal memberratio;

    @ApiModelProperty(value = "介绍视频[多张用逗号分隔]")
    @TableField("VIDEOURLS")
    private String videourls;

    @ApiModelProperty(value = "介绍图片[多张用逗号分隔](1:1)")
    @TableField("PICURLS")
    private String picurls;

    @ApiModelProperty(value = "商品价格")
    @TableField("GOODSPRICE")
    private BigDecimal goodsprice;

    @ApiModelProperty(value = "类别ID(WRCATEGORY)")
    @TableField("CATEGORYID")
    private Long categoryid;

    @ApiModelProperty(value = "关联商品ID(69,70)")
    @TableField("RELATEDGOODSID")
    private Long relatedgoodsid;

    @ApiModelProperty(value = "关联商品市场ID(69,70)")
    @TableField("RELATEDMARKETID")
    private Long relatedmarketid;

    @ApiModelProperty(value = "最长提货期(天)")
    @TableField("MAXDELIVERYTIME")
    private Long maxdeliverytime;

    @ApiModelProperty(value = "是否支持行程预约 - 0:不支持 1:支持")
    @TableField("CANAPPOINTMENT")
    private Integer canappointment;

    @ApiModelProperty(value = "商品有效期(截止日期)")
    @TableField("EXPIREDDATE")
    private Date expireddate;

    @ApiModelProperty(value = "商品有效状态 - 0:已过期 1:正常")
    @TableField("ISVALID")
    private Integer isvalid;

    @ApiModelProperty(value = "行程天数【支持行程预约】")
    @TableField("TRIPDAYS")
    private Integer tripdays;

    @ApiModelProperty(value = "可提前多少天预约【支持行程预约】")
    @TableField("SCHEDULEDAYS")
    private Integer scheduledays;


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

}
