package com.gxwebsoft.shop.param;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 商品记录表查询参数
 *
 * @author 科技小王子
 * @since 2022-11-23 12:47:16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "GoodsParam对象", description = "商品记录表查询参数")
public class GoodsParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品ID")
    @QueryField(type = QueryType.EQ)
    private Integer goodsId;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品编码")
    private String goodsCode;

    @ApiModelProperty(value = "商品规格(10单规格 20多规格)")
    @QueryField(type = QueryType.EQ)
    private Integer goodsType;

    @ApiModelProperty(value = "商品分类ID")
    @QueryField(type = QueryType.EQ)
    private Integer categoryId;

    @ApiModelProperty(value = "商品封面图")
    private String image;

    @ApiModelProperty(value = "上传的文件")
    private String files;

    @ApiModelProperty(value = "主图视频路径")
    private String videoUrl;

    @ApiModelProperty(value = "商品卖点")
    private String sellingPoint;

    @ApiModelProperty(value = "商品规格(10单规格 20多规格)")
    @QueryField(type = QueryType.EQ)
    private Integer specType;

    @ApiModelProperty(value = "商品价格(最低)")
    @QueryField(type = QueryType.EQ)
    private BigDecimal goodsPriceMin;

    @ApiModelProperty(value = "商品价格(最高)")
    @QueryField(type = QueryType.EQ)
    private BigDecimal goodsPriceMax;

    @ApiModelProperty(value = "划线价格(最低)")
    @QueryField(type = QueryType.EQ)
    private BigDecimal linePriceMin;

    @ApiModelProperty(value = "划线价格(最高)")
    @QueryField(type = QueryType.EQ)
    private BigDecimal linePriceMax;

    @ApiModelProperty(value = "库存总量(包含所有sku)")
    @QueryField(type = QueryType.EQ)
    private Integer stockTotal;

    @ApiModelProperty(value = "库存计算方式(10下单减库存 20付款减库存)")
    @QueryField(type = QueryType.EQ)
    private Integer deductStockType;

    @ApiModelProperty(value = "商品详情")
    private String content;

    @ApiModelProperty(value = "初始销量")
    @QueryField(type = QueryType.EQ)
    private Integer salesInitial;

    @ApiModelProperty(value = "实际销量")
    @QueryField(type = QueryType.EQ)
    private Integer salesActual;

    @ApiModelProperty(value = "配送方式")
    @QueryField(type = QueryType.EQ)
    private Integer deliveryType;

    @ApiModelProperty(value = "配送模板ID")
    @QueryField(type = QueryType.EQ)
    private Integer deliveryId;

    @ApiModelProperty(value = "是否开启积分赠送(1开启 0关闭)")
    @QueryField(type = QueryType.EQ)
    private Integer isPointsGift;

    @ApiModelProperty(value = "是否允许使用积分抵扣(1允许 0不允许)")
    @QueryField(type = QueryType.EQ)
    private Integer isPointsDiscount;

    @ApiModelProperty(value = "积分抵扣设置(0默认抵扣 1单独设置抵扣)")
    @QueryField(type = QueryType.EQ)
    private Integer isAlonePointsDiscount;

    @ApiModelProperty(value = "单独设置积分抵扣的配置")
    private String pointsDiscountConfig;

    @ApiModelProperty(value = "是否开启会员折扣(1开启 0关闭)")
    @QueryField(type = QueryType.EQ)
    private Integer isEnableGrade;

    @ApiModelProperty(value = "会员折扣设置(0默认等级折扣 1单独设置折扣)")
    @QueryField(type = QueryType.EQ)
    private Integer isAloneGrade;

    @ApiModelProperty(value = "单独设置折扣的配置")
    private String aloneGradeEquity;

    @ApiModelProperty(value = "是否推荐")
    @QueryField(type = QueryType.EQ)
    private Integer isHot;

    @ApiModelProperty(value = "规格单位")
    private String unit;

    @ApiModelProperty(value = "餐段")
    private String period;

    @ApiModelProperty(value = "档口")
    private Integer gear;

    @ApiModelProperty(value = "商品重量")
    private Double goodsWeight;

    @ApiModelProperty(value = "商品优惠属性: 0无 1限时特惠 2特惠专区")
    @QueryField(type = QueryType.EQ)
    private Integer attribute;

    @ApiModelProperty(value = "是否开启单独分销(0关闭 1开启)")
    @QueryField(type = QueryType.EQ)
    private Integer isIndDealer;

    @ApiModelProperty(value = "是否开启限购(0关闭 1开启)")
    @QueryField(type = QueryType.EQ)
    private Integer purchaseLimit;

    @ApiModelProperty(value = "分销佣金类型(10百分比 20固定金额)")
    @QueryField(type = QueryType.EQ)
    private Integer dealerMoneyType;

    @ApiModelProperty(value = "分销佣金(一级)")
    @QueryField(type = QueryType.EQ)
    private BigDecimal firstMoney;

    @ApiModelProperty(value = "分销佣金(二级)")
    @QueryField(type = QueryType.EQ)
    private BigDecimal secondMoney;

    @ApiModelProperty(value = "分销佣金(三级)")
    @QueryField(type = QueryType.EQ)
    private BigDecimal thirdMoney;

    @ApiModelProperty(value = "用户ID")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @ApiModelProperty(value = "排序(数字越小越靠前)")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "状态, 0上架, 1下架")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Integer deleted;

    @ApiModelProperty(value = "商户编号")
    @QueryField(type = QueryType.EQ)
    private String merchantCode;

    @ApiModelProperty(value = "商户名称")
    @QueryField(type = QueryType.EQ)
    private String merchantName;
}
