53 lines
1.1 KiB
Java
53 lines
1.1 KiB
Java
package com.ghy.payment.domain;
|
|
|
|
import lombok.Data;
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
/**
|
|
* 支付单关联表
|
|
*/
|
|
@Data
|
|
public class PaymentRelation {
|
|
|
|
private Long id;
|
|
|
|
/**
|
|
* 支付ID
|
|
*/
|
|
private String paymentId;
|
|
|
|
/**
|
|
* 关联ID
|
|
*/
|
|
private Long relationId;
|
|
|
|
/**
|
|
* 关联ID类型
|
|
* financial_master: 主财务单
|
|
* financial_change: 加价单
|
|
* order_add: 订单追加单
|
|
*/
|
|
private String relationIdType;
|
|
|
|
/**
|
|
* 流水分担金额
|
|
*/
|
|
private BigDecimal payAmt;
|
|
|
|
public PaymentRelation() {
|
|
}
|
|
|
|
public PaymentRelation(String paymentId, Long relationId, String relationIdType, BigDecimal payAmt) {
|
|
this.paymentId = paymentId;
|
|
this.relationId = relationId;
|
|
this.relationIdType = relationIdType;
|
|
this.payAmt = payAmt;
|
|
}
|
|
|
|
public static final String FINANCIAL_MASTER = "financial_master";
|
|
public static final String FINANCIAL_CHANGE = "financial_change";
|
|
public static final String ORDER_ATTACHMENT = "order_attachment";
|
|
public static final String ORDER_ADD = "order_add";
|
|
}
|