历史订单 赠送

退款库存 回滚
日志打印 截断200
This commit is contained in:
2025-03-03 10:45:59 +08:00
parent ec32fc48f5
commit 8119c767f0
7 changed files with 69 additions and 25 deletions

View File

@@ -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;
}