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

commit

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