package com.iformall.domain.po;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.iformall.common.SortColumn;
import com.iformall.domain.po.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;


import java.math.BigDecimal;
import java.util.Date;

@TableName(value = "wx_shop")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class WxShop extends BaseEntity {

    protected Long id;


    @TableField(exist = false)
	private Long rentContractId;

	@TableField(exist = false)
	private String linkPerson;

	@TableField(exist = false)
	private String linkPhone;

	@io.swagger.annotations.ApiModelProperty(value="租户ID",name="tenantId")
	private String tenantId;


	@Excel(name="类型",width = 20,orderNum = "1",
			replace = {"商铺_null", "固定点位_1", "临时促销点位_2", "宣传点位_3","ATM点位_4","仓库点位_5","其他点位_6"})
    @io.swagger.annotations.ApiModelProperty(value = "点位类型", name = "pointType")
	private Integer pointType;

	@Excel(name="商铺号/多径点位号",width = 20,orderNum = "2")
    @io.swagger.annotations.ApiModelProperty(value="商铺编号",name="shopNumber")
	private String shopNumber;


	@Excel(name="建筑面积(㎡)",width = 20,orderNum = "5")
	@SortColumn(column = "buildArea")
    @io.swagger.annotations.ApiModelProperty(value="建筑面积",name="buildArea")
	private String buildArea;


	@Excel(name="计租面积(㎡)",width = 20,orderNum = "6")
	@SortColumn(column = "operationArea")
    @io.swagger.annotations.ApiModelProperty(value="经营面积",name="operationArea")
	private String operationArea;

	@io.swagger.annotations.ApiModelProperty(value="楼座号",name="building")
	private Long building;

	@io.swagger.annotations.ApiModelProperty(value="楼层号",name="floor")
	private Long floor;

	@Excel(name="租赁状态",width = 20,orderNum = "7",replace = {"未出租_0","已出租_1"})
    @io.swagger.annotations.ApiModelProperty(value="状态(0:未出租, 1:已出租)",name="status")
	private Integer status;

	@io.swagger.annotations.ApiModelProperty(value="店铺相对位置x",name="x")
	private BigDecimal x;

	@io.swagger.annotations.ApiModelProperty(value="店铺相对位置y",name="y")
	private BigDecimal y;

	@io.swagger.annotations.ApiModelProperty(value="地址",name="addr")
	private String addr;

	@io.swagger.annotations.ApiModelProperty(value="百度poi(省市区县street等)",name="baiduPoi")
	private String baiduPoi;

	@io.swagger.annotations.ApiModelProperty(value="经度- baidu poi",name="longitude")
	private BigDecimal longitude;

	@io.swagger.annotations.ApiModelProperty(value="维度-baidu poi",name="latitude")
	private BigDecimal latitude;

	@io.swagger.annotations.ApiModelProperty(value="创建时间",name="createDate")
	private Date createDate;

	@io.swagger.annotations.ApiModelProperty(value="更新时间",name="updateDate")
	private Date updateDate;

	@io.swagger.annotations.ApiModelProperty(value="图片",name="imgUrl")
	private String imgUrl;

	@io.swagger.annotations.ApiModelProperty(value="管理人",name="manager")
	private String manager;

	@io.swagger.annotations.ApiModelProperty(value="管理人电话",name="managerPhone")
	private String managerPhone;

    @io.swagger.annotations.ApiModelProperty(value = "类型", name = "type")
    private Integer type;



    @io.swagger.annotations.ApiModelProperty(value = "备注", name = "comments")
    private String comments;

	@io.swagger.annotations.ApiModelProperty(value = "是否删除1是0否", name = " ")
	private Integer isDel;

	@TableField(exist = false)
    @io.swagger.annotations.ApiModelProperty(value = "查询-开始时间", name = "startdate")
	private Date startdate;

	@TableField(exist = false)
    @io.swagger.annotations.ApiModelProperty(value = "查询-结束时间", name = "startdate")
	private Date enddate;

	@TableField(exist = false)
	@SortColumn(column = "freeDay")
    @io.swagger.annotations.ApiModelProperty(value = "闲置时间", name = "freeDay")
	private Integer freeDay;

	@io.swagger.annotations.ApiModelProperty(value = "参考租金", name = "rent")
	private String rent;

	@io.swagger.annotations.ApiModelProperty(value = "预置业态", name = "businessId")
	private Integer businessId;

    @io.swagger.annotations.ApiModelProperty(value = "租金单位", name = "rentUnit")
    private Integer rentUnit;


}
