package com.xinelu.manage.domain.storeInfo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 店铺信息对象 store_info
 *
 * @author xinyilu
 * @date 2022-10-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "店铺信息对象", description = "store_info")
public class StoreInfo extends BaseDomain implements Serializable {
    private static final long serialVersionUID = -4924160218005137736L;
    /**
     * 主键id
     */
    private Long id;

    /**
     * 所属护理站id
     */
    @ApiModelProperty(value = "所属护理站id")
    @Excel(name = "所属护理站id")
    private Long nurseStationId;

    /**
     * 店铺名称
     */
    @ApiModelProperty(value = "店铺名称")
    @Excel(name = "店铺名称")
    private String storeName;

    /**
     * 店铺编号
     */
    @ApiModelProperty(value = "店铺编号")
    @Excel(name = "店铺编号")
    private String storeCode;

    /**
     * 店铺地址
     */
    @ApiModelProperty(value = "店铺地址")
    @Excel(name = "店铺地址")
    private String storeAddress;

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

    /**
     * 店铺背景图片地址
     */
    @ApiModelProperty(value = "店铺背景图片地址")
    @Excel(name = "店铺背景图片地址")
    private String storeLogoUrl;

    /**
     * 店铺经营者，即所属人
     */
    @ApiModelProperty(value = "店铺经营者，即所属人")
    @Excel(name = "店铺经营者，即所属人")
    private String storeOperator;

    /**
     * 店铺开业状态，待开业：NOT_OPENED，已开业：OPENED，已关闭：CLOSED
     */
    @ApiModelProperty(value = "店铺开业状态，待开业：NOT_OPENED，已开业：OPENED，已关闭：CLOSED")
    @Excel(name = "店铺开业状态，待开业：NOT_OPENED，已开业：OPENED，已关闭：CLOSED")
    private String openingStatus;

    /**
     * 开业时间，yyyy-MM-dd HH:mm:ss
     */
    @ApiModelProperty(value = "开业时间，yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开业时间，yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime openingTime;

    /**
     * 营业开始时间，yyyy-MM-dd HH:mm:ss
     */
    @ApiModelProperty(value = "营业开始时间，yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "营业开始时间，yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime occupationStartTime;

    /**
     * 营业结束时间，yyyy-MM-dd HH:mm:ss
     */
    @ApiModelProperty(value = "营业结束时间，yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "营业结束时间，yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime occupationEndTime;

    /**
     * 店铺显示顺序
     */
    @ApiModelProperty(value = "店铺显示顺序")
    @Excel(name = "店铺显示顺序")
    private Integer sort;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("nurseStationId", getNurseStationId())
                .append("storeName", getStoreName())
                .append("storeCode", getStoreCode())
                .append("storeAddress", getStoreAddress())
                .append("phone", getPhone())
                .append("storeLogoUrl", getStoreLogoUrl())
                .append("storeOperator", getStoreOperator())
                .append("openingStatus", getOpeningStatus())
                .append("openingTime", getOpeningTime())
                .append("occupationStartTime", getOccupationStartTime())
                .append("occupationEndTime", getOccupationEndTime())
                .append("sort", getSort())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
