fix 修正错别字

This commit is contained in:
疯狂的狮子Li 2021-10-25 18:33:26 +08:00
parent 42a3117e2a
commit d254340b9b
2 changed files with 3 additions and 3 deletions

View File

@ -37,13 +37,13 @@ public class RateLimiterAspect {
} }
long number = RedisUtils.rateLimiter(combineKey, rateType, count, time); long number = RedisUtils.rateLimiter(combineKey, rateType, count, time);
if (number == -1) { if (number == -1) {
throw new ServiceException("访问过于频繁,请稍再试"); throw new ServiceException("访问过于频繁,请稍再试");
} }
log.info("限制令牌 => {}, 剩余令牌 => {}, 缓存key => '{}'", count, number, combineKey); log.info("限制令牌 => {}, 剩余令牌 => {}, 缓存key => '{}'", count, number, combineKey);
} catch (ServiceException e) { } catch (ServiceException e) {
throw e; throw e;
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException("服务器限流异常,请稍再试"); throw new RuntimeException("服务器限流异常,请稍再试");
} }
} }

View File

@ -100,7 +100,7 @@
WHERE r.del_flag = '0' and ur.user_id = #{userId} WHERE r.del_flag = '0' and ur.user_id = #{userId}
</select> </select>
<select id="selectRoleListByUserId" parameterType="Long" resultType="Integer"> <select id="selectRoleListByUserId" parameterType="Long" resultType="Long">
select r.role_id select r.role_id
from sys_role r from sys_role r
left join sys_user_role ur on ur.role_id = r.role_id left join sys_user_role ur on ur.role_id = r.role_id