package com.gxwebsoft.shop.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商户
 *
 * @author 科技小王子
 * @since 2024-04-05 00:03:54
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Merchant对象", description = "商户")
@TableName("shop_merchant")
public class Merchant implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "merchant_id", type = IdType.AUTO)
    private Integer merchantId;

    @ApiModelProperty(value = "商户名称")
    private String merchantName;

    @ApiModelProperty(value = "商户标识")
    private String merchantCode;

    @ApiModelProperty(value = "商户图标")
    private String image;

    @ApiModelProperty(value = "商户手机号")
    private String phone;

    @ApiModelProperty(value = "商户姓名")
    private String realName;

    @ApiModelProperty(value = "店铺类型")
    private String shopType;

    @ApiModelProperty(value = "项目类型")
    private String itemType;

    @ApiModelProperty(value = "商户分类")
    private String category;

    private Integer merchantCategoryId;

    private String merchantCategoryTitle;

    @ApiModelProperty(value = "经纬度")
    private String lngAndLat;

    private String lng;

    private String lat;

    @ApiModelProperty(value = "所在省份")
    private String province;

    @ApiModelProperty(value = "所在城市")
    private String city;

    @ApiModelProperty(value = "所在辖区")
    private String region;

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

    @ApiModelProperty(value = "每小时价格")
    private BigDecimal price;

    @ApiModelProperty(value = "手续费")
    private BigDecimal commission;

    @ApiModelProperty(value = "关键字")
    private String keywords;

    @ApiModelProperty(value = "资质图片")
    private String files;

    @ApiModelProperty(value = "营业时间")
    private String businessTime;

    @ApiModelProperty(value = "商户简介")
    private String content;

    @ApiModelProperty(value = "是否自营")
    private Integer ownStore;

    @ApiModelProperty(value = "是否推荐")
    private Integer recommend;

    @ApiModelProperty(value = "是否需要审核")
    private Boolean goodsReview;

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

    @ApiModelProperty(value = "管理入口")
    private String adminUrl;

    @ApiModelProperty(value = "所有人")
    private Integer userId;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty("是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "排序号")
    private Integer sortNumber;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "默认商户管理员角色ID")
    @TableField(exist = false)
    private Integer roleId;

    @ApiModelProperty(value = "角色名称")
    @TableField(exist = false)
    private String roleName;

    @ApiModelProperty(value = "按店铺分类的购物车商品")
    @TableField(exist = false)
    private List<Cart> carts;

    @TableField(exist = false)
    private BigDecimal distance;

    @ApiModelProperty(value = "订单数")
    @TableField(exist = false)
    private Integer orderNum;
}
