package com.gxwebsoft.dormitory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 审批管理
 *
 * @author 科技小王子
 * @since 2025-10-03 15:54:30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "审批管理")
public class DormitoryApply implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "类型")
    private Integer type;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "姓名")
    private String realName;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "客户名称")
    private String dealerName;

    @Schema(description = "客户编号")
    private String dealerCode;

    @Schema(description = "详细地址")
    private String address;

    @Schema(description = "签约价格")
    private BigDecimal money;

    @Schema(description = "推荐人用户ID")
    private Integer refereeId;

    @Schema(description = "申请方式(10需后台审核 20无需审核)")
    private Integer applyType;

    @Schema(description = "审核状态 (10待审核 20审核通过 30驳回)")
    private Integer applyStatus;

    @Schema(description = "申请时间")
    private LocalDateTime applyTime;

    @Schema(description = "审核时间")
    private LocalDateTime auditTime;

    @Schema(description = "合同时间")
    private LocalDateTime contractTime;

    @Schema(description = "过期时间")
    private LocalDateTime expirationTime;

    @Schema(description = "驳回原因")
    private String rejectReason;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "商城ID")
    private Integer tenantId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

}