MerchantStore.java 1.91 KB
package com.diligrp.rider.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 商家店铺表
 *  merchant_store表
 */
@Data
@TableName("merchant_store")
public class MerchantStore {

    @TableId(type = IdType.AUTO)
    private Long id;

    /** 店铺名称 */
    private String name;

    /** 店铺封面图 */
    private String thumb;

    /** 所属城市ID */
    private Long cityId;

    /** 店铺地址 */
    private String address;

    /** 经度 */
    private String lng;

    /** 纬度 */
    private String lat;

    /** 营业状态:0=打烊 1=营业 */
    private Integer operatingState;

    /** 是否自动接单:0=否 1=是 */
    private Integer automaticOrder;

    /** 配送类型:1=外卖配送 2=到店自提 */
    private Integer shippingType;

    /** 免运费门槛(订单金额满X元免运费,0=不免) */
    private BigDecimal freeShipping;

    /** 起送金额(订单金额低于此值不接单,0=不限) */
    private BigDecimal upToSend;

    /** 营业日期JSON,如[1,2,3,4,5]表示周一到周五 */
    private String openDate;

    /** 营业时间JSON,如["09:00","22:00"] */
    private String openTime;

    /** 店铺简介 */
    private String about;

    /** 关联账号ID(merchant_users表) */
    private Long accountId;

    /**
     * 关联接入方 AppKey(为空=平台自建门店)
     * 外部系统同步门店时写入,用于标识门店归属哪个接入方
     */
    private String appKey;

    /**
     * 接入方自己系统的门店ID(外部门店编号)
     * 推单时传此字段,中台自动匹配门店经纬度
     * 平台自建门店也可手动填入,便于与外部系统对账
     */
    private String outStoreId;

    /** 排序 */
    private Integer listOrder;

    /** 是否删除 */
    @TableLogic
    private Integer isDel;

    private Long addTime;
}