提交 22e7b8f2 authored 作者: Whispa's avatar Whispa

commit

上级 3afd10be
......@@ -3,6 +3,7 @@ package com.example.afrishop_v3.models;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Transient;
......@@ -41,7 +42,9 @@ public class Bonus extends Model {
private String productSharer;
private boolean status = false;
public boolean isWithdraw = false;
@Column(columnDefinition = "is_withdraw")
public boolean withdraw = false;
@Transient
private String product;
......@@ -85,7 +88,7 @@ public class Bonus extends Model {
}
private void withDrawChange(){
this.isWithdraw = true;
this.withdraw = true;
}
public void reverseAmount(){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论