diff --git a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/impl/StatsAchievementServiceImpl.java b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/impl/StatsAchievementServiceImpl.java index a16cdce71f..b23d1c7a46 100644 --- a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/impl/StatsAchievementServiceImpl.java +++ b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/service/impl/StatsAchievementServiceImpl.java @@ -134,7 +134,7 @@ public class StatsAchievementServiceImpl extends AbstractStatsAchievementService } /** - * desc: 计算小组成就 + * desc: 插入或更新小组成就 * * @param customerId * @param groupId @@ -147,7 +147,7 @@ public class StatsAchievementServiceImpl extends AbstractStatsAchievementService //如果没有实现的成就则说明是初始化 if (one == null) { //第一次创建小组时;初始化那集中类型的成就;没有即将完成的成就 且 类型为小组成员 且 成员(不包括组长)数为0 所以需要初始化下 小组成就的那4类 - if (AchievementTypeEnum.MEMBER.getCode().equals(achievementType) && currentValue == 0) { + if (AchievementTypeEnum.MEMBER.getCode().equals(achievementType) && currentValue == NumConstant.ZERO) { for (AchievementTypeEnum achievement : AchievementTypeEnum.values()) { initAchievementStat(customerId, groupId, achievement.getCode(), currentValue, haveArrive); }