package org.qinan.safetyeval.client.dto;

import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDate;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 机构信息分页查询参数
 *
 * @author safety-eval
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class OrgInfoPageQuery extends BasePageQuery {

    @ApiModelProperty(value = "生产经营单位名称")
    private String unitName;

    @ApiModelProperty(value = "统一社会信用代码")
    private Long creditCode;

    @ApiModelProperty(value = "认证状态编码(1填写信息2审核中3通过)")
    private Long authStatusCode;

    @ApiModelProperty(value = "租户id")
    private Long tenantId;

    @ApiModelProperty(value = "所属县区名称")
    private String districtName;

    @ApiModelProperty(value = "状态(0启用1禁用)")
    private Integer state;

    @ApiModelProperty(value = "开户时间（创建时间）起")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate createTimeStart;

    @ApiModelProperty(value = "开户时间（创建时间）止")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate createTimeEnd;

    @ApiModelProperty(value = "注册地址")
    private String registerAddress;

    @ApiModelProperty(value = "备案类型编码(1审核备案2确认备案)")
    private String filingTypeCode;

    @ApiModelProperty(value = "备案状态编码(1已备案2未备案)")
    private Integer filingRecordStatusCode;
}
