package com.sckw.payment.model.vo.res;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 *
 * @author xucaiqin
 * @date 2026-03-26 14:45:11
 */
@Schema(description = "预付")
@Data
public class PrepayVo {
    /**
     * 主键
     */
    @Schema(description = "主键")
    private Long id;

    /**
     * 付款方 采购商
     */
    @Schema(description = "付款方")
    private Long fromEnt;

    /**
     * 收款方 供应商
     */
    @Schema(description = "收款方")
    private Long toEnt;

    /**
     * 订单号
     */
    @TableField(value = "order_no")
    @Schema(description = "中台订单号")
    private String orderNo;

    @Schema(description = "操作")
    private Integer action;
    @Schema(description = "操作")
    private String actionLabel;
    /**
     * 交易金额
     */
    @TableField(value = "money")
    @Schema(description = "交易金额")
    private Integer money;

    /**
     * 预付金额
     */
    @TableField(value = "prepay_amount")
    @Schema(description = "预付金额")
    private Integer prepayAmount;

    /**
     * 交易中金额
     */
    @TableField(value = "deal_amount")
    @Schema(description = "交易中金额")
    private Integer dealAmount;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @Schema(description = "备注")
    private String remark;

    /**
     * 状态 1-已提交 2-预付成功 3-预付失败
     */
    @TableField(value = "`status`")
    @Schema(description = "状态 1-已提交 2-预付成功 3-预付失败")
    private Integer status;
    @Schema(description = "状态")
    private String statusLabel;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    @Schema(description = "创建人")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    @Schema(description = "更新人")
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 0-正常 1-删除
     */
    @TableField(value = "del_flag")
    @Schema(description = "0-正常 1-删除")
    private Integer delFlag;
}
