diff --git a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/dao/ResiGroupAchievementStatsDao.java b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/dao/ResiGroupAchievementStatsDao.java index d1113cc8cc..d79f769aeb 100644 --- a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/dao/ResiGroupAchievementStatsDao.java +++ b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/group/dao/ResiGroupAchievementStatsDao.java @@ -44,7 +44,7 @@ public interface ResiGroupAchievementStatsDao extends BaseDao selectUnAchieved(@Param("groupId") String groupId); /** - * desc: 获取最后一个为实现的成就 + * desc: 获取级别最低的最后一个未实现的成就 * * @param customerId * @param groupId diff --git a/epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupAchievementStatsDao.xml b/epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupAchievementStatsDao.xml index da4925d12d..2d18215754 100644 --- a/epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupAchievementStatsDao.xml +++ b/epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupAchievementStatsDao.xml @@ -46,6 +46,8 @@ AND CUSTOMER_ID = #{customerId} AND ACHIEVEMENT_TYPE = #{achievementType} AND IS_ARRIVE = 0 + ORDER BY TARGET_VALUE + LIMIT 1 INSERT INTO resi_group_achievement_stats