package com.gxwebsoft.tower.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.gxwebsoft.tower.entity.TowerProjectOrder;
import com.gxwebsoft.tower.entity.TowerProjectPlace;
import com.gxwebsoft.tower.entity.TowerProjectUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Set;

/**
 * 项目管理查询参数
 *
 * @author 科技小王子
 * @since 2023-05-22 13:30:39
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "TowerProjectParam对象", description = "项目管理查询参数")
public class TowerProjectParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @QueryField(type = QueryType.EQ)
    private Integer projectId;

    @ApiModelProperty(value = "配件名称")
    private String projectName;

    @ApiModelProperty(value = "项目图片")
    private String projectImage;

    @ApiModelProperty(value = "租赁单位")
    private String companyName;

    @ApiModelProperty(value = "承租单位")
    private String customerName;

    @ApiModelProperty(value = "项目地址")
    private String projectRegion;

    @ApiModelProperty(value = "详细地址")
    private String projectAddress;

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

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

    @ApiModelProperty(value = "报监编号")
    private String superviseNo;

    @ApiModelProperty(value = "施工许可证")
    private String licenceNo;

    @ApiModelProperty(value = "安全状态")
    private String securityStatus;

    @ApiModelProperty(value = "主管部门")
    private String competentDepartment;

    @ApiModelProperty(value = "安拆单位")
    private String dismantlingCompany;

    @ApiModelProperty(value = "汽吊规格")
    private String truckCraneSpecs;

    @ApiModelProperty(value = "合同其他说明")
    private String contract;

    @ApiModelProperty(value = "项目负责人")
    @QueryField(type = QueryType.EQ)
    private Integer director;

    @ApiModelProperty(value = "项目经理")
    private String projectDirector;

    @ApiModelProperty(value = "项目状态")
    private String projectStatus;

    @ApiModelProperty(value = "业务员")
    private String salesman;

    @ApiModelProperty(value = "状态, 0待发布, 1已发布")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "排序号")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

    @ApiModelProperty(value = "所有人")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Integer deleted;

    @ApiModelProperty(value = "项目成员")
    @TableField(exist = false)
    private Set<TowerProjectUser> users;

    @ApiModelProperty(value = "合同预定设备清单")
    @TableField(exist = false)
    private Set<TowerProjectOrder> orders;

    @ApiModelProperty(value = "检查部位配置")
    @TableField(exist = false)
    private Set<TowerProjectPlace> places1;

    @ApiModelProperty(value = "保养部位配置")
    @TableField(exist = false)
    private Set<TowerProjectPlace> places2;


    @ApiModelProperty(value = "派单类型")
    @TableField(exist = false)
    private Integer worksheetType;

    @ApiModelProperty(value = "派单设备类型")
    @TableField(exist = false)
    private Integer worksheetEquipType;

    @ApiModelProperty(value = "派单作业类型")
    @TableField(exist = false)
    private Integer worksheetWortType;

    @ApiModelProperty("搜索关键字")
    @TableField(exist = false)
    private String keywords;

}
