Browse Source

解决因按照points分组导致的userId,未查询到数据问题

feature/syp_points
zhangyongzhangyong 5 years ago
parent
commit
521442ee88
  1. 5
      esua-epdc/epdc-module/epdc-points/epdc-points-server/src/main/resources/mapper/PointsLogsDao.xml

5
esua-epdc/epdc-module/epdc-points/epdc-points-server/src/main/resources/mapper/PointsLogsDao.xml

@ -131,7 +131,8 @@
<select id="selectUserPointsRanking" resultType="com.elink.esua.epdc.dto.result.EpdcAppPointsRankingUserDTO">
SELECT
userRanking.rank,
userRanking.points
userRanking.points,
userRanking.pdtj
FROM(
SELECT
(@i:=@i+1) rank,
@ -155,7 +156,7 @@
GROUP BY tab.points
ORDER BY tab.points DESC
) userRanking
WHERE userRanking.userId = #{userId}
WHERE instr(userRanking.pdtj , #{userId} ) > 0
</select>
<select id="selectCountPointsRanking" resultType="int">

Loading…
Cancel
Save