Browse Source

Merge remote-tracking branch 'origin/dev_personal_center' into dev_temp

dev_shibei_match
zxc 5 years ago
parent
commit
f39fb3449d
  1. 2
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBadgeServiceImpl.java
  2. 1
      epmet-user/epmet-user-server/src/main/resources/mapper/UserBadgeDao.xml

2
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBadgeServiceImpl.java

@ -86,7 +86,7 @@ public class UserBadgeServiceImpl implements UserBadgeService {
}
redisUserBadgeList.forEach(u -> {
userBadgeListResultDTOS.forEach(badge -> {
if (u.getBadgeId().equals(badge.getBadgeId())){
if (u.getBadgeId().equals(badge.getBadgeId()) && badge.getIsOpened().equals(NumConstant.ONE)){
badge.setBadgeIcon(u.getBadgeIcon());
u.setStatus(true);
}

1
epmet-user/epmet-user-server/src/main/resources/mapper/UserBadgeDao.xml

@ -35,7 +35,6 @@
AND b.DEL_FLAG = 0
AND ub.CERTIFICATION_AUTID_STATUS = 'approved'
AND b.CUSTOMER_ID = 'default'
AND ub.IS_OPENED = 1
AND b.BADGE_STATUS = 'online'
AND ub.USER_ID = #{userId}
ORDER BY ub.UPDATED_TIME DESC

Loading…
Cancel
Save