package com.yuchen.saas.park.api.dto.people;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.nest.springwrap.core.mp.support.Query;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel(value = "人员列表查询参数")
public class PmgBatParkPeopleQryDto extends Query {

    /**
     * 名字
     */
    @ApiModelProperty(value = "名字")
    private String name;
    /**
     * 性别
     */
    @ApiModelProperty(value = "性别")
    private String sex;
    /**
     * 身份ID
     */
    @ApiModelProperty(value = "身份证号")
    private String idCard;
    /**
     * 联系方式
     */
    @ApiModelProperty(value = "联系电话")
    private String phone;
    /**
     * 人员类型
     */
    @ApiModelProperty(value = "人员类型ID 1：业主 2：亲属 3：租客 4：黑名单人员 5：物业人员 6：安保人员 7：家政 8：装修人员 9；临时人员")
    private Long peopleType;
    /**
     * 人员二级类型
     */
    @ApiModelProperty(value = "人员二级类型ID")
    private Long peopleSubType;
    /**
     * 证件类型
     */
    @ApiModelProperty(value = "证件类型")
    private String idType;

    /**
     * 人员状态
     */
    @ApiModelProperty(value = "人员状态")
    private String personStatus;

    @ApiModelProperty(value = "社区id")
    private Long parkId;


    @ApiModelProperty(value = "楼栋id")
    private Long buildingId;

    @ApiModelProperty(value = "楼层id")
    private Long floorId;

    @ApiModelProperty(value = "房间id")
    private Long roomId;

    @ApiModelProperty(value = "社区名称")
    private String parkName;

    @ApiModelProperty(value = "楼栋名称")
    private String buildingName;

    @ApiModelProperty(value = "单元名称")
    private String buildingUnitName;

    @ApiModelProperty(value = "房屋名称")
    private String roomName;


    @ApiModelProperty(value = "单元id")
    private Long buildingUnitId;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "提交时间")
    private Date submitTime;

    /**
     * 人员标签
     */
    @ApiModelProperty(value = "人员标签")
    private String personTag;
    /**
     * 绑定账号
     */
    @ApiModelProperty(value = "绑定账号")
    private String bindAccount;

    @ApiModelProperty(name = "bindStatus",value = "绑定状态  0：未绑定 1：已绑定 2：已失效")
    private Integer bindStatus;

    @ApiModelProperty(value = "是否是楼栋管家 1是 0否")
    private Integer isBuildingManager;

    @ApiModelProperty(value = "是否是楼栋工程师 1是 0否")
    private Integer isBuildingEngineer;

    @ApiModelProperty(value = "是否为企业")
    private String ownerType;

    @ApiModelProperty(value = "人员大类")
    private String bigType;

    @ApiModelProperty(value = "证件照片")
    private String idPhoto;

    @ApiModelProperty(value = "证件照片反面")
    private String idPhotoBack;

    @ApiModelProperty(value = "附件")
    private String attachments;

    @ApiModelProperty(value = "业主id")
    private Long ownerId;

    @ApiModelProperty(value = "是否是企业 1是 0否")
    private Integer isCompany;


}
