package org.dromara.project.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.project.domain.BusProject;

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


/**
 * 项目视图对象 project
 *
 * @author lcj
 * @date 2025-03-04
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BusProject.class)
public class BusProjectVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long id;

    /**
     * 项目名称
     */
    @ExcelProperty(value = "项目名称")
    private String projectName;

    /**
     * 项目简称
     */
    @ExcelProperty(value = "项目简称")
    private String shortName;

    /**
     * 父项目id
     */
    @ExcelProperty(value = "父项目id")
    private Long pId;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 项目图片
     */
    @ExcelProperty(value = "项目图片")
    private String picUrl;

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

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

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

    /**
     * 项目类型
     */
    @ExcelProperty(value = "项目类型")
    private String type;

    /**
     * 项目类型（1光伏 2风电）
     */
    @ExcelProperty(value = "项目类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=光伏,2=风电")
    private String isType;

    /**
     * 项目地址
     */
    @ExcelProperty(value = "项目地址")
    private String projectSite;

    /**
     * 负责人
     */
    @ExcelProperty(value = "负责人")
    private String principal;

    /**
     * 负责人电话
     */
    @ExcelProperty(value = "负责人电话")
    private String principalPhone;

    /**
     * 实际容量
     */
    @ExcelProperty(value = "实际容量")
    private String actual;

    /**
     * 计划容量
     */
    @ExcelProperty(value = "计划容量")
    private String plan;

    /**
     * 开工时间
     */
    @ExcelProperty(value = "开工时间")
    private String onStreamTime;

    /**
     * 打卡范围（09:00,18:00）
     */
    @ExcelProperty(value = "打卡范围", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=9:00,18:00")
    private String punchRange;

    /**
     * 设计总量
     */
    @ExcelProperty(value = "设计总量")
    private Long designTotal;

    /**
     * 安全协议书
     */
    @ExcelProperty(value = "安全协议书")
    private String securityAgreement;

    /**
     * 显示隐藏（0显示 1隐藏）
     */
    @ExcelProperty(value = "显示隐藏", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=显示,2=隐藏")
    private String showHidden;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

}
