package com.ruoyi.zhdd.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.zhdd.domain.ResourceDetail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import java.util.List;


/**
 * 应急资源视图对象 b_resource
 *
 * @author xintong
 * @date 2021-10-27
 */
@Data
@ApiModel("应急资源视图对象")
@ExcelIgnoreUnannotated
public class ResourceVo {

	private static final long serialVersionUID = 1L;

	/**
     *  $pkColumn.columnComment
     */
	@ApiModelProperty("$pkColumn.columnComment")
	private String id;

    /**
     * 资源类型。1-仓库。2-队伍.3-车辆
     */
	@ExcelProperty(value = "资源类型。1-仓库。2-队伍.3-车辆")
	@ApiModelProperty("资源类型。1-仓库。2-队伍.3-车辆")
	private Integer resourceType;

    /**
     * 名称
     */
	@ExcelProperty(value = "名称")
	@ApiModelProperty("名称")
	private String name;

    /**
     * 地址
     */
	@ExcelProperty(value = "地址")
	@ApiModelProperty("地址")
	private String address;

    /**
     * 经度
     */
	@ExcelProperty(value = "经度")
	@ApiModelProperty("经度")
	private String longitude;

    /**
     * 纬度
     */
	@ExcelProperty(value = "纬度")
	@ApiModelProperty("纬度")
	private String latitude;

    /**
     * 管理单位
     */
	@ExcelProperty(value = "管理单位")
	@ApiModelProperty("管理单位")
	private String manageUnit;

    private String carType;

    /**
     * 人数
     */
	@ExcelProperty(value = "人数")
	@ApiModelProperty("人数")
	private Integer num;

    /**
     * 携带物资（应急时）
     */
	@ExcelProperty(value = "携带物资", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "应=急时")
	@ApiModelProperty("携带物资（应急时）")
	private String carryGoods;

    /**
     * 联系人
     */
	@ExcelProperty(value = "联系人")
	@ApiModelProperty("联系人")
	private String contactName;

    /**
     * 联系电话
     */
	@ExcelProperty(value = "联系电话")
	@ApiModelProperty("联系电话")
	private String contactPhone;

    private List<ResourceDetail> resourceDetailList;


}
