package com.cpop.oam.business.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import com.cpop.core.base.entity.BaseEntity;
import com.cpop.core.base.entity.BaseInsertListener;
import com.cpop.core.base.entity.BaseUpdateListener;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 报销阶段表 实体类。
 *
 * @author DB
 * @since 2023-09-26
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table(value = "cp_oam_finance_reimburse_stage", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
public class FinanceReimburseStage extends BaseEntity implements Serializable {

    /**
     * 主键
     */
    @Id
    private String id;

    /**
     * 报销记录id
     */
    private String financeReimburseId;

    /**
     * 阶段金额
     */
    private BigDecimal stageAmount;

    /**
     * 下发时间
     */
    private LocalDateTime paymentTime;

    /**
     * 逻辑删除（1否0是）
     */
    @Column(isLogicDelete = true)
    private Boolean isDelete;

}
