package com.tofly.project.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.haiqiu.tools.excel.annotation.Excel;
import com.tofly.project.entity.ProjectConstruction;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author HaiQiu
 * @since 2022/11/14
 */
@Data
public class ProjectConstructionVo extends ProjectConstruction {


    /**
     * 工程名称
     */
    @TableField(exist = false)
    @Excel(name = "工程名称")
    @ApiModelProperty(value = "工程名称")
    private String projectName;

    /**
     * 工程地址
     */
    @TableField(exist = false)
    @Excel(name = "工程地址")
    @ApiModelProperty(value = "工程地址")
    private String projectAddress;

    /**
     * 工程编号
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "工程编号")
    private String projectNumber;

    /**
     * 工程类型（字典取值）
     */
    @TableField(exist = false)
    @Excel(name = "工程类型（字典取值）")
    @ApiModelProperty(value = "工程类型（字典取值）")
    private Long projectType;
    @TableField(exist = false)
    @Excel(name = "工程类型（字典取值）")
    @ApiModelProperty(value = "工程类型（字典取值）")
    private String projectTypeName;

    /**
     * 开始时间查询
     */
    @JsonIgnore
    @TableField(exist = false)
    @ApiModelProperty(value = "开始时间查询")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间查询
     */
    @JsonIgnore
    @TableField(exist = false)
    @ApiModelProperty(value = "结束时间查询")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 查询关键字
     */
    @JsonIgnore
    @TableField(exist = false)
    @ApiModelProperty(value = "查询关键字")
    private String searchStr;
}
