package com.kym.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.kym.entity.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 站点账户提现记录表
 * </p>
 *
 * @author skyline
 * @since 2025-04-19
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_withdrawn_record")
public class WithdrawnRecord extends BaseEntity {

    public static final int STATUS_待审核= 0;
    public static final int STATUS_审核通过= 1;
    public static final int STATUS_审核失败= 2;

    private static final long serialVersionUID = 1L;

    /**
     * 站点id
     */
    private String stationId;

    /**
     * 提现金额（分）
     */
    private Integer withdrawnAmount;

    /**
     * 状态：0-待审核，1-审核通过，2-审核失败
     */
    private Integer status;

    /**
     * 打款状态：0-未打款，1-已打款
     */
    private Integer paymentStatus;

    /**
     * 审核人
     */
    private String reviewer;

    /**
     * 审核时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime reviewTime;

    /**
     * 打款人
     */
    private String payer;

    /**
     * 打款时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime paymentTime;

    /**
     * 备注
     */
    private String remark;
}
