|
@ -66,7 +66,7 @@ |
|
|
point.total_point, |
|
|
point.total_point, |
|
|
@point := point.total_point |
|
|
@point := point.total_point |
|
|
FROM |
|
|
FROM |
|
|
( SELECT * FROM user_point_total WHERE CUSTOMER_ID = #{customerId} ORDER BY total_point DESC ) point, |
|
|
( SELECT * FROM user_point_total WHERE CUSTOMER_ID = #{customerId} and del_flag = '0' ORDER BY total_point DESC ) point, |
|
|
( SELECT @point := NULL, @rank := 1 ) a |
|
|
( SELECT @point := NULL, @rank := 1 ) a |
|
|
|
|
|
|
|
|
) temp |
|
|
) temp |
|
@ -122,4 +122,4 @@ |
|
|
UPDATED_BY = #{createdBy} |
|
|
UPDATED_BY = #{createdBy} |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
</mapper> |
|
|
</mapper> |
|
|