package com.jeesharp.business.modules.food.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 企业团餐充值记录实体，映射表 {@code biz_food_company_recharge}。
 *
 * @author jeesharp
 * @since 2026-06-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("biz_food_company_recharge")
public class FoodCompanyRecharge extends BaseEntity<FoodCompanyRecharge> {

    /**
     * 充值单号
     */
    private String rechargeNo;

    /**
     * 企业ID
     */
    private String companyId;

    /**
     * 账户ID
     */
    private String accountId;

    /**
     * 充值金额
     */
    private BigDecimal rechargeAmount;

    /**
     * 充值渠道：OFFLINE-线下 ONLINE-线上
     */
    private String rechargeChannel;

    /**
     * 支付单ID
     */
    private String payOrderId;

    /**
     * 支付单号
     */
    private String payOrderNo;

    /**
     * 状态：0-线下待确认 1-线上待支付 2-已到账 3-已取消
     */
    private Integer status;

    /**
     * 申请时间
     */
    private LocalDateTime applyTime;

    /**
     * 支付到账时间
     */
    private LocalDateTime paidTime;

    /**
     * 确认人ID
     */
    private String confirmBy;

    /**
     * 确认时间
     */
    private LocalDateTime confirmTime;

    /**
     * 取消时间
     */
    private LocalDateTime cancelTime;
}
