| @@ -15,13 +15,13 @@ public interface WxLevelConfigMapper extends CommonMapper<WxLevelConfig, Long> { | |||||
| void deleteAll(@Param("tenantId")String tenantId); | void deleteAll(@Param("tenantId")String tenantId); | ||||
| String getLevel(@Param("tenantId")String tenantId,@Param("poins")Integer poins); | |||||
| String getLevel(@Param("tenantId")String tenantId,@Param("points")Integer poins); | |||||
| /** | /** | ||||
| * 获取等级倍率 | * 获取等级倍率 | ||||
| * @param tenantId | * @param tenantId | ||||
| * @param poins | |||||
| * @param points | |||||
| * @return | * @return | ||||
| */ | */ | ||||
| Integer getScale(@Param("tenantId")String tenantId,@Param("poins")Integer poins); | |||||
| Integer getScale(@Param("tenantId")String tenantId,@Param("points")Integer points); | |||||
| } | } | ||||
| @@ -109,8 +109,8 @@ | |||||
| </delete> | </delete> | ||||
| <select id="getLevel" parameterType="com.iformall.domain.po.WxLevelConfig" resultType="String"> | <select id="getLevel" parameterType="com.iformall.domain.po.WxLevelConfig" resultType="String"> | ||||
| SELECT `level` FROM `wx_level_config` where tenant_id=#{tenantId} and points <= #{points} ORDER BY points desc LIMIT 1 | |||||
| </select> | |||||
| SELECT `level` FROM `wx_level_config` where tenant_id=#{tenantId} and points <= #{points} ORDER BY points desc LIMIT 1 | |||||
| </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 ASC limit 1 ; | ||||
| </select> | </select> | ||||