package com.gxwebsoft.common.system.param;

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

import java.math.BigDecimal;
import java.util.Date;

/**
 * 组织机构查询参数
 *
 * @author WebSoft
 * @since 2021-08-29 20:35:09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(description = "组织机构查询参数")
public class OrganizationParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "机构id")
    @QueryField(type = QueryType.EQ)
    private Integer organizationId;

    @ApiModelProperty(value = "上级id, 0是顶级")
    @QueryField(type = QueryType.EQ)
    private Integer parentId;

    @ApiModelProperty(value = "机构名称")
    private String organizationName;

    @ApiModelProperty(value = "机构全称")
    private String organizationFullName;

    @ApiModelProperty(value = "机构代码")
    private String organizationCode;

    @ApiModelProperty(value = "机构类型(字典代码)")
    private String organizationType;

    @ApiModelProperty(value = "所在省份")
    @QueryField(type = QueryType.EQ)
    private String province;

    @ApiModelProperty(value = "所在城市")
    @QueryField(type = QueryType.EQ)
    private String city;

    @ApiModelProperty(value = "所在辖区")
    @QueryField(type = QueryType.EQ)
    private String region;

    @ApiModelProperty(value = "邮政编码")
    @QueryField(type = QueryType.EQ)
    private String zipCode;

    @ApiModelProperty(value = "所属园区")
    @QueryField(type = QueryType.EQ)
    private String park;

    @ApiModelProperty(value = "有所属产业的企业")
    @TableField(exist = false)
    private Boolean estateOnly;

    @ApiModelProperty(value = "机构图片")
    @QueryField(type = QueryType.EQ)
    private String image;

    @ApiModelProperty(value = "园区介绍")
    @QueryField(type = QueryType.EQ)
    private String about;

    @ApiModelProperty(value = "联系电话")
    @QueryField(type = QueryType.EQ)
    private String phone;

    @ApiModelProperty(value = "企业邮箱")
    @QueryField(type = QueryType.EQ)
    private String email;

    @ApiModelProperty(value = "成立时间")
    @QueryField(type = QueryType.EQ)
    private Date establishTime;

    @ApiModelProperty(value = "注册资金")
    @QueryField(type = QueryType.EQ)
    private BigDecimal registeredCapital;

    @ApiModelProperty(value = "经营范围")
    @QueryField(type = QueryType.EQ)
    private String business;

    @ApiModelProperty(value = "经营状态")
    @QueryField(type = QueryType.EQ)
    private Integer businessStatus;

    @ApiModelProperty(value = "参保人数")
    @QueryField(type = QueryType.EQ)
    private Integer insureds;

    @ApiModelProperty(value = "所属行业")
    @QueryField(type = QueryType.EQ)
    private String industry;

    @ApiModelProperty(value = "负责人id")
    @QueryField(type = QueryType.EQ)
    private Integer leaderId;

    @ApiModelProperty(value = "是否合作单位")
    @QueryField(type = QueryType.EQ)
    private Integer isCoop;

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

    @ApiModelProperty(value = "机构类型名称")
    @TableField(exist = false)
    private String organizationTypeName;

    @ApiModelProperty(value = "负责人姓名")
    @TableField(exist = false)
    private String leaderNickname;

    @ApiModelProperty(value = "负责人账号")
    @TableField(exist = false)
    private String leaderUsername;

    @ApiModelProperty(value = "企业及部门筛选")
    @TableField(exist = false)
    private Integer organizationIdWithChildren;

}
