package com.sckw.manage.model.report;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sckw.excel.annotation.ExcelContext;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @author czh
 * @desc 地点档案列表信息
 * @date 2023/9/14
 */
@Data
@Accessors(chain = true)
@ExcelContext(fileName = "地点档案列表信息", sheetName = "地点档案列表信息")
public class AddressQueryExport implements Serializable {

    @Serial
    private static final long serialVersionUID = 9153289220823593050L;

    @ExcelProperty(value = "地址名称")
    private String name;

    @ExcelProperty(value = "地址类型")
    private String typeName;

    @ExcelProperty(value = "企业名称")
    private String entName;

    @ExcelProperty(value = "电子围栏")
    private String fence;

    @ExcelProperty(value = "默认类型")
    private String defaultTypeName;

    @ExcelProperty(value = "联系人")
    private String contacts;

    @ExcelProperty(value = "联系电话")
    private String phone;

    @ExcelProperty(value = "所属区域")
    private String cityName;

    @ExcelProperty(value = "详细地址")
    private String detailAddress;

    @ExcelProperty(value = "经度")
    private String lng;

    @ExcelProperty(value = "纬度")
    private String lat;

    @ExcelProperty(value = "创建人")
    private String createByName;

    @ExcelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ExcelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ExcelProperty(value = "备注")
    private String remark;

}
