Browse Source

积分排行UI变更设计,添加头像

master
zhaoqifeng 4 years ago
parent
commit
8026023c5b
  1. 2
      epmet-module/epmet-point/epmet-point-client/src/main/java/com/epmet/dto/result/ResiPointRankListResultDTO.java
  2. 2
      epmet-module/epmet-point/epmet-point-client/src/main/java/com/epmet/dto/result/ResiPointRankingResultDTO.java
  3. 2
      epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/UserPointStatisticalDailyServiceImpl.java
  4. 2
      epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/UserPointTotalServiceImpl.java

2
epmet-module/epmet-point/epmet-point-client/src/main/java/com/epmet/dto/result/ResiPointRankListResultDTO.java

@ -30,6 +30,8 @@ public class ResiPointRankListResultDTO implements Serializable {
* */
private Integer myRanking;
private String myHeadImgUrl;
/**
* 积分排名列表
* */

2
epmet-module/epmet-point/epmet-point-client/src/main/java/com/epmet/dto/result/ResiPointRankingResultDTO.java

@ -20,4 +20,6 @@ public class ResiPointRankingResultDTO implements Serializable {
private Integer point;
private String headImgUrl;
}

2
epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/UserPointStatisticalDailyServiceImpl.java

@ -146,6 +146,7 @@ public class UserPointStatisticalDailyServiceImpl extends BaseServiceImpl<UserPo
}
//微信昵称
o.setMyNickname(myResiInfoResult.getData().get(NumConstant.ZERO).getNickname());
o.setMyHeadImgUrl(myResiInfoResult.getData().get(NumConstant.ZERO).getHeadImgUrl());
}
//2.获取维度值
DimIdGenerator.DimIdBean dimIdBean = DimIdGenerator.getDimIdBean(new Date());
@ -204,6 +205,7 @@ public class UserPointStatisticalDailyServiceImpl extends BaseServiceImpl<UserPo
target.setPoint(rankList.get(i).getTotalPoint());
if(userRequestCallback) {
target.setNickname(null == userInfo.getData().get(i) ? "" : userInfo.getData().get(i).getNickname());
target.setHeadImgUrl(null == userInfo.getData().get(i) ? "" : userInfo.getData().get(i).getHeadImgUrl());
}
resultObj.setRankList(target);
result.add(resultObj);

2
epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/UserPointTotalServiceImpl.java

@ -155,6 +155,7 @@ public class UserPointTotalServiceImpl extends BaseServiceImpl<UserPointTotalDao
}
//微信昵称
o.setMyNickname(myResiInfoResult.getData().get(NumConstant.ZERO).getNickname());
o.setMyHeadImgUrl(myResiInfoResult.getData().get(NumConstant.ZERO).getHeadImgUrl());
}
//2.查询排行榜信息,个人排行(分页)
if(NumConstant.ONE < pointRankFormDTO.getPageNo()){
@ -215,6 +216,7 @@ public class UserPointTotalServiceImpl extends BaseServiceImpl<UserPointTotalDao
target.setPoint(rankList.get(i).getTotalPoint());
if(userRequestCallback) {
target.setNickname(null == userInfo.getData().get(i) ? "" : userInfo.getData().get(i).getNickname());
target.setHeadImgUrl(null == userInfo.getData().get(i) ? "" : userInfo.getData().get(i).getHeadImgUrl());
}
resultObj.setRankList(target);
result.add(resultObj);

Loading…
Cancel
Save