|
|
package com.yohoufo.dal.order.model;
|
|
|
|
|
|
import lombok.Data;
|
|
|
import lombok.Getter;
|
|
|
import lombok.Setter;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.Objects;
|
|
|
|
|
|
/**
|
|
|
* 交易流水表
|
|
|
*/
|
|
|
@Data
|
|
|
@Getter
|
|
|
@Setter
|
|
|
public class TradeBills {
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -66,10 +69,23 @@ public class TradeBills { |
|
|
//支付阶段,0:普通,1:定金
|
|
|
private int payLevel = 0;
|
|
|
|
|
|
/**
|
|
|
* suggest use new enum, define class as blow
|
|
|
* {@link com.yohoufo.order.common.BillTradeStatus}
|
|
|
*/
|
|
|
@Override
|
|
|
public boolean equals(Object o) {
|
|
|
if (this == o) return true;
|
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
TradeBills that = (TradeBills) o;
|
|
|
return Objects.equals(uid, that.uid) &&
|
|
|
Objects.equals(orderCode, that.orderCode) &&
|
|
|
Objects.equals(userType, that.userType) &&
|
|
|
Objects.equals(tradeType, that.tradeType) &&
|
|
|
Objects.equals(incomeOutcome, that.incomeOutcome);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public int hashCode() {
|
|
|
return Objects.hash(uid, orderCode, userType, tradeType, incomeOutcome);
|
|
|
}
|
|
|
|
|
|
@Deprecated
|
|
|
public enum Status {
|
|
|
|
...
|
...
|
@@ -78,10 +94,14 @@ public class TradeBills { |
|
|
Status(int code) {
|
|
|
this.code = code;
|
|
|
}
|
|
|
|
|
|
private int code;
|
|
|
|
|
|
public int getCode() {
|
|
|
return code;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|