package org.dromara.web.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.web.domain.PatientAccount;

/**
 * 患者账户信息业务对象 patient_account
 *
 * @author Lion Li
 * @date 2025-08-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PatientAccount.class, reverseConvertGenerate = false)
public class PatientAccountBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 患者ID
     */
    private Long patientId;

    /**
     * 患者姓名
     */
    private String patientName;

    /**
     * 患者病例ID
     */
    private Long patientCaseId;

    /**
     * 患者科室
     */
    private Long doorId;

    /**
     * 门诊/住院号
     */
    private String patientNo;

    /**
     * 病区
     */
    private Long wardId;

    /**
     * 病区名称
     */
    private String wardName;

    private String deptName;

    /**
     * 诊疗卡号
     */
    private String treatNum;

    /**
     * 身份证号
     */
    private String idCard;

    /**
     * 性别：1-男，2-女
     */
    private Long sex;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 账户
     */
    private String serialNo;

    /**
     * 账户余额
     */
    private Long totalAmount;

    /**
     * 账户充值
     */
    private Long totalIncome;

    /**
     * 账户消费
     */
    private Long totalExpand;

    /**
     * 待缴金额
     */
    private Long unpaidAmount;

    /**
     * 可用金额
     */
    private Long availableAmount;

    /**
     * 授信金额
     */
    private Long creditAmount;

    /**
     * 可用授信额度
     */
    private Long creditLimit;

    /**
     * 状态：0-正常，1-禁用
     */
    private Long status;

    /**
     * 激活状态：0-未激活，1-已激活
     */
    private Long activated;

    /**
     * 备注
     */
    private String remark;

    /**
     * 待处理事项
     */
    private String waitingTask;

    private String visitType;


}
