|
|
|
@@ -102,14 +102,14 @@ |
|
|
|
</update> |
|
|
|
|
|
|
|
<delete id="deleteAll" parameterType="com.iformall.domain.po.WxLevelConfig"> |
|
|
|
delete from wx_level_config where `tenant_id` = #{finalTenantId}; |
|
|
|
delete from wx_level_config where `tenant_id` = #{tenantId}; |
|
|
|
</delete> |
|
|
|
|
|
|
|
<select id="getLevel" parameterType="com.iformall.domain.po.WxLevelConfig" resultType="String"> |
|
|
|
SELECT `level` FROM `wx_level_config` where tenant_id = #{finalTenantId} 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 id="getScale" parameterType="com.iformall.domain.po.WxLevelConfig" resultType="java.lang.Integer"> |
|
|
|
select `scale` from wx_level_config where tenant_id = #{finalTenantId} and #{points} >=points order by points desc limit 1 ; |
|
|
|
select `scale` from wx_level_config where tenant_id = #{tenantId} and #{points} >=points order by points desc limit 1 ; |
|
|
|
</select> |
|
|
|
|
|
|
|
</mapper> |