package com.hzs.common.domain.third.pay;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 支付请求子表(分账)
 * </p>
 *
 * @author bd
 * @since 2025-07-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("T_ONLINE_PAYMENT_SEP_ACC_D")
@KeySequence("T_ONLINE_PAYMENT_SEP_ACC_D_SEQ")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TOnlinePaymentSepAccD extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
    private Long pkId;

    /**
     * 支付请求主表ID
     */
    @TableField("PK_SEP_ACC")
    private Long pkSepAcc;

    /**
     * 分账账号
     */
    @TableField("ACCOUNT")
    private String account;

    /**
     * 分账比例
     */
    @TableField("PROPORTION")
    private BigDecimal proportion;

    @TableField("TRADE_AMOUNT")
    private BigDecimal tradeAmount;

    @TableField("OUT_TRADE_NO")
    private String outTradeNo;
}
