|
|
@@ -112,7 +112,7 @@ |
|
|
SELECT `level` FROM `wx_level_config` where tenant_id=#{tenantId} and points <= #{points} ORDER BY points desc LIMIT 1 |
|
|
SELECT `level` FROM `wx_level_config` where tenant_id=#{tenantId} and points <= #{points} ORDER BY points desc LIMIT 1 |
|
|
</select> |
|
|
</select> |
|
|
<select id="getScale" parameterType="com.iformall.domain.po.WxLevelConfig" resultType="java.lang.Integer"> |
|
|
<select id="getScale" parameterType="com.iformall.domain.po.WxLevelConfig" resultType="java.lang.Integer"> |
|
|
select `scale` from wx_level_config where #{points} <=points and tenant_id=#{tenantId} order by points ASC limit 1 ; |
|
|
|
|
|
|
|
|
select `scale` from wx_level_config where #{points} >=points and tenant_id=#{tenantId} order by points desc limit 1 ; |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
</mapper> |
|
|
</mapper> |