package org.dromara.web.domain.vo;

import java.util.Date;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.web.domain.Settlement;

import java.io.Serial;
import java.io.Serializable;


/**
 * 结算管理视图对象 settlement
 *
 * @author Lion Li
 * @date 2025-07-22
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Settlement.class)
public class SettlementVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 开单时间
     */
    @ExcelProperty(value = "开单时间")
    private Date orderTime;

    /**
     * 看诊类型
     */
    @ExcelProperty(value = "看诊类型")
    private String visitType;

    /**
     * 收费类型
     */
    @ExcelProperty(value = "收费类型")
    private String chargeType;

    /**
     * 患者ID
     */
    @ExcelProperty(value = "患者ID")
    private Long patientId;

    /**
     * 患者姓名
     */
    @ExcelProperty(value = "患者姓名")
    private String patientName;

    /**
     * 患者科室
     */
    @ExcelProperty(value = "患者科室")
    private String patientDepartment;

    /**
     * 门诊/住院号
     */
    @ExcelProperty(value = "门诊/住院号")
    private String patientNo;

    /**
     * 联系电话
     */
    @ExcelProperty(value = "联系电话")
    private String phone;

    /**
     * 身份证号
     */
    @ExcelProperty(value = "身份证号")
    private String idCard;

    /**
     * 应收金额
     */
    @ExcelProperty(value = "应收金额")
    private Long receivableAmount;

    /**
     * 支付状态(未支付/已支付/已退款)
     */
    @ExcelProperty(value = "支付状态(未支付/已支付/已退款)")
    private String paymentStatus;

    /**
     * 支付方式
     */
    @ExcelProperty(value = "支付方式")
    private String paymentMethod;

    /**
     * 状态（0正常 1停用 2草稿）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;


}
