From 3d46bba9a015b1d2602c10a61574d86c9c8af955 Mon Sep 17 00:00:00 2001 From: jianjun Date: Tue, 27 Apr 2021 13:31:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E7=A8=8B=E5=BA=8F=E5=81=A5?= =?UTF-8?q?=E5=A3=AE=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet/modules/group/dao/ResiGroupAchievementStatsDao.java | 2 +- .../resources/mapper/group/ResiGroupAchievementStatsDao.xml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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