From 534cd7a8d664d335e064e46f14617df8324c2305 Mon Sep 17 00:00:00 2001 From: jianjun Date: Sun, 25 Apr 2021 15:35:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=BB=84=E6=88=90=E5=B0=B1=E6=96=B0?= =?UTF-8?q?=E5=BB=BA=E5=B0=8F=E7=BB=84=E5=88=9D=E5=A7=8B=E5=8C=962?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../group/service/impl/StatsAchievementServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }