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.sql.Date;

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

    @Id
    private String id;

    /**
     * 提交人
     */
    private String staffId;

    /**
     * 状态：0:审批中;1:下款中;2:已下发-1:驳回
     */
    private Integer status;

    /**
     * 申请类型
     */
    private String typeId;

    /**
     * 报销日期
     */
    private Date reportDate;

    /**
     * 申请说明
     */
    private String remarks;

    /**
     * 申请金额
     */
    private BigDecimal price;

    /**
     * 附件
     */
    private String attachmentUrl;

    /**
     * 驳回原因
     */
    private String rejectReason;

    /**
     * 逻辑删除
     */
    @Column(isLogicDelete = true)
    private Boolean isDelete;

}
