Commit 3ca6a17b authored by hezhen's avatar hezhen

修改会员

parent 4739aeeb
......@@ -3,12 +3,10 @@ package com.github.wxiaoqi.security.admin.entity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.RoundingMode;
/**
......@@ -114,4 +112,13 @@ public class BaseUserMemberLevel implements Serializable {
@ApiModelProperty(value = "会员商品图片")
private String itemImg;
@Transient
private BigDecimal showShareAmount;
public BigDecimal getShowShareAmount(){
return price.multiply(shareAmount).divide(new BigDecimal("100")).setScale(2, RoundingMode.HALF_UP);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment