package cn.iocoder.yudao.module.system.dal.dataobject.biz;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;

/**
 * 长者退住结算单 DO
 *
 * @author 系统管理员
 */
@TableName("elderly_refund_settlement_order")
@KeySequence("elderly_refund_settlement_order_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RefundSettlementOrderDO{

    /**
     * 退住结算单ID
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 长者ID
     */
    private Long elderId;

    @Schema(description = "结算单号")
    private String orderNumber;

    /**
     * 结算单状态,0：待结算 1：已结算
     */
    @Schema(description = "结算单状态,0：待结算 1：已结算")
    private Integer status;
    /**
     * 结算时间
     */
    @Schema(description = "结算时间")
    private Date settlementTime;
    /**
     * 结算人姓名
     */
    @Schema(description = "结算人姓名")
    private String settlementPersonName;
    /**
     * 结算金额
     */
    @Schema(description = "结算金额")
    private BigDecimal refundAmount;

    @Schema(description = "应收金额")
    private BigDecimal receivableAmount;

    @Schema(description = "应退金额")
    private BigDecimal refundableAmount;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createdTime;
    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private String createdBy;


    /**
     * 业务ID
     * 目前有退住结算申请表
     */
    @Schema(description = "业务ID")
    private Long businessId;


    private Long tenantId;

    @TableField(exist = false)
    private String elderName;

    @TableField(exist = false)
    private String bedName;

    @TableField(exist = false)
    private String tenantName;


}