package com.bonus.canteen.core.supermarket.domain;

import com.bonus.canteen.core.common.utils.FileUrlUtil;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;

/**
 * 超市对象 supermarket_info
 * 
 * @author xsheng
 * @date 2025-05-25
 */


@Data
@ToString
public class SupermarketInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 是否分页 */
    private boolean pagenation;

    /** 超市id */
    private Long supermarketId;

    /** 超市名称 */
    @Excel(name = "超市名称")
    @ApiModelProperty(value = "超市名称")
    private String supermarketName;

    /** 区域id */
    @Excel(name = "区域id")
    @ApiModelProperty(value = "区域id")
    private Long areaId;

    private String areaName;

    /** 管理员 */
    @Excel(name = "管理员")
    @ApiModelProperty(value = "管理员")
    private String manager;

    /** 联系电话 */
    @Excel(name = "联系电话")
    @ApiModelProperty(value = "联系电话")
    private String contactTel;

    /** 仓库id */
    @Excel(name = "仓库id")
    @ApiModelProperty(value = "仓库id")
    private Long warehouseId;

    /** 超市地址 */
    @Excel(name = "超市地址")
    @ApiModelProperty(value = "超市地址")
    private String address;

    /** 图片url */
    @Excel(name = "图片url")
    @ApiModelProperty(value = "图片url")
    private String imgUrl;

    /** 是否立即打印 */
    @Excel(name = "是否立即打印")
    @ApiModelProperty(value = "是否立即打印")
    private Long ifPrintNow;

    /** 线上销售模式(1现货2预定) */
    @Excel(name = "线上销售模式(1现货2预定)")
    @ApiModelProperty(value = "线上销售模式(1现货2预定)")
    private Long appSaleMode;

    /** 最少配送时间（分） */
    @Excel(name = "最少配送时间", readConverterExp = "分=")
    private Long minDeliveryTime;

    /** 选择时间间隔（分） */
    @Excel(name = "选择时间间隔", readConverterExp = "分=")
    private Long selectTimeInterval;

    /** 配送费（元） */
    @Excel(name = "配送费", readConverterExp = "元=")
    private Long deliveryCost;

    /** 自动核销天数（天） */
    @Excel(name = "自动核销天数", readConverterExp = "天=")
    private Long autoVerifyDay;

    /** 配送方式(1自取2配送) */
    @Excel(name = "配送方式(1自取2配送)")
    @ApiModelProperty(value = "配送方式(1自取2配送)")
    private String deliveryWay;

    /** 退单限制时间（分） */
    @Excel(name = "退单限制时间", readConverterExp = "分=")
    private Long refundLimitTime;

    /** 是否关联出入库(1是2否) */
    @Excel(name = "是否关联出入库(1是2否)")
    @ApiModelProperty(value = "是否关联出入库(1是2否)")
    private Long ifRelateDrp;

    /** 流水号前缀 */
    @Excel(name = "流水号前缀")
    @ApiModelProperty(value = "流水号前缀")
    private String mealCode;

    /** 是否启用收款码(1是2否) */
    @Excel(name = "是否启用收款码(1是2否)")
    @ApiModelProperty(value = "是否启用收款码(1是2否)")
    private Long ifEnablePayCode;

    /** 超市收款码链接 */
    @Excel(name = "超市收款码链接")
    @ApiModelProperty(value = "超市收款码链接")
    private String payCodeUrl;


    public String getImgUrl() {
        return FileUrlUtil.getFileUrl(this.imgUrl);
    }

}
