Commit dd875197 authored by codezwjava's avatar codezwjava

森林状态 获取直推用户接口测试2

parent 85285a86
......@@ -73,7 +73,8 @@ public class UserForestStatusServiceImpl implements UserForestStatusService {
//6.距离下级升级条件
if(userLevel == 0){
//用户等级 < 幼苗 显示业绩缺少额度
//用户等级 为青铜时 距离下级升级条件为
int levelUpCase = 3980;
//获取当前用户的业绩
BigDecimal performanceByUserid = orderMapper.getPerformanceByUserid(userId);
if (performanceByUserid == null){
......@@ -82,6 +83,8 @@ public class UserForestStatusServiceImpl implements UserForestStatusService {
//距离升级还差多少额度
BigDecimal differenceAmount = levelTerm.subtract(performanceByUserid);
difference.put("differenceAmount",differenceAmount);
int perpenct = 1 - (performanceByUserid.intValue() / 3980);
userForestStatusMap.put("perenct",perpenct);
userForestStatusMap.put("differenceMap",difference);
}else if(userLevel == 1){
//用户等级为幼苗
......
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