package org.jeecg.modules.system.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("nm_profit_sharing_records")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "分账记录表")
public class AppProfitSharingRecords implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "id")
    private String id;

    /**
     * 分账单号
     */
    @Schema(description = "分账单号")
    private String profitSharingNo;

    /**
     * 订单ID
     */
    @Schema(description = "订单ID")
    private String orderId;

    /**
     * 微信交易流水号
     */
    @Schema(description = "transactionId")
    private String transactionId;

    /**
     * 微信分账单号
     */
    @Schema(description = "微信分账单号")
    private String profitSharingOrderId;

    /**
     * 订单支付金额(分)
     */
    @Schema(description = "订单支付金额(分)")
    private Integer price;

    /**
     * 订单预分账金额(分)
     */
    @Schema(description = "订单预分账金额(分)")
    private Integer orderAmount;

    /**
     * 分账金额(分)
     */
    @Schema(description = "分账金额(分)")
    private Integer amount;


    /**
     * 微信分账手续费（分）0.06%
     */
    @Schema(description = "微信分账手续费（分）0.06%")
    private Integer procedureFee;

    /**
     * 分账状态
     */
    @Schema(description = "分账状态")
    private Integer status;

    /**
     * 分账失败原因
     */
    @Schema(description = "分账失败原因")
    private String failReason;

    /**
     * 分账时间
     */
    @Schema(description = "分账时间")
    private Date profitSharingTime;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private Date updateTime;

    /**
     * 逻辑删除标识(0-正常,1-已删除)
     */
    @Schema(description = "逻辑删除标识(0-正常,1-已删除)")
    private Integer delFlag;
}
