package org.dromara.web.domain.bo;

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

/**
 * 开票记录业务对象 invoice_record
 *
 * @author Huanyi
 * @date 2025-08-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = InvoiceRecord.class, reverseConvertGenerate = false)
public class InvoiceRecordBo extends BaseEntity {

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

    /**
     * 发票号码
     */
    private String number;

    /**
     * 发票类型
     */
    private String type;

    /**
     * 发票抬头
     */
    private String header;

    /**
     * 抬头名称
     */
    private String headerName;

    /**
     * 患者名称
     */
    private String name;

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

    /**
     * 开票金额
     */
    private Long amount;

    /**
     * 开票进度
     */
    private Long progress;

    /**
     * 失败原因
     */
    private String failReason;


}
