package org.dromara.web.domain.bo;

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.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.web.domain.ChargeRecord;

/**
 * 收费记录业务对象 charge_record
 *
 * @author Lion Li
 * @date 2025-08-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ChargeRecord.class, reverseConvertGenerate = false)
public class ChargeRecordBo extends BaseEntity {

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

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

    /**
     * 开单时间
     */
    private Date orderTime;

    /**
     * 看诊类型
     */
    private String visitType;

    /**
     * 收费类型
     */
    private String chargeType;

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

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

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

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

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

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

    /**
     * 订单金额
     */
    private Long receivableAmount;

    /**
     * 实收金额
     */
    private Long fundsReceived;

    /**
     * 退费金额
     */
    private Long refundAmount;

    /**
     * 支付状态(未支付/已支付/已退款)
     */
    private String paymentStatus;

    /**
     * 支付方式
     */
    private String paymentMethod;

    /**
     * 床号
     */
    private String bedNo;

    /**
     * 退费时间
     */
    private Date refundTime;

    /**
     * 状态（0正常 1停用）
     */
    private String status;

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

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

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

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


}
