|
|
@ -6,6 +6,7 @@ import lombok.NoArgsConstructor; |
|
|
|
|
|
|
|
import java.io.Serializable; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.math.RoundingMode; |
|
|
|
|
|
|
|
/** |
|
|
|
* @program: gold-java |
|
|
@ -26,4 +27,12 @@ public class Gold implements Serializable { |
|
|
|
private BigDecimal freeGolds; // 免费金币总数 |
|
|
|
private BigDecimal taskGolds; // 任务金币总数 |
|
|
|
private BigDecimal sumGolds; |
|
|
|
// public void setPermanentGolds(BigDecimal permanentGolds) { |
|
|
|
// if (permanentGolds != null) { |
|
|
|
// // 保留两位小数,四舍五入 |
|
|
|
// this.permanentGolds = permanentGolds.setScale(2, RoundingMode.HALF_UP); |
|
|
|
// } else { |
|
|
|
// this.permanentGolds = null; |
|
|
|
// } |
|
|
|
// } |
|
|
|
} |