|
|
package com.yohoufo.dal.order.model;
|
|
|
|
|
|
import lombok.Getter;
|
|
|
import lombok.Setter;
|
|
|
import lombok.Data;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.Objects;
|
|
|
|
|
|
/**
|
|
|
* 交易流水表
|
|
|
*/
|
|
|
@Getter
|
|
|
@Setter
|
|
|
@Data
|
|
|
public class TradeBills {
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -69,23 +66,10 @@ public class TradeBills { |
|
|
//支付阶段,0:普通,1:定金
|
|
|
private int payLevel = 0;
|
|
|
|
|
|
@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);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* suggest use new enum, define class as blow
|
|
|
* {@link com.yohoufo.order.common.BillTradeStatus}
|
|
|
*/
|
|
|
@Deprecated
|
|
|
public enum Status {
|
|
|
|
...
|
...
|
@@ -94,14 +78,10 @@ public class TradeBills { |
|
|
Status(int code) {
|
|
|
this.code = code;
|
|
|
}
|
|
|
|
|
|
private int code;
|
|
|
|
|
|
public int getCode() {
|
|
|
return code;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|