历史订单 赠送
退款库存 回滚 日志打印 截断200
This commit is contained in:
@@ -169,6 +169,19 @@ public class OrderDetail implements Serializable {
|
||||
@Column(onInsertValue = "now()", onUpdateValue = "now()")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 是否赠送 0否 1是
|
||||
*/
|
||||
@Column(ignore = true)
|
||||
private Integer isGift = 0;
|
||||
|
||||
|
||||
public void initGift() {
|
||||
if (price.compareTo(BigDecimal.ZERO) == 0) {
|
||||
isGift = 1;
|
||||
}
|
||||
}
|
||||
|
||||
public BigDecimal getRefundNum() {
|
||||
return refundNum == null ? BigDecimal.ZERO : refundNum;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user