Merge branch 'master' of http://git.lionquexpress.com/wuweihua/BMS
This commit is contained in:
+6
@@ -53,6 +53,12 @@ public class CreditQuotaServiceImpl implements ICreditQuotaService
|
||||
{
|
||||
throw new ServiceException("无法获取当前登录用户");
|
||||
}
|
||||
// 超管审批不占用任何角色额度池:直接返回空列表,前端不弹选池框(否则 LEFT JOIN 会带出
|
||||
// 超管角色未配置的 0 额度池,导致前端强制选池并被"额度池剩余不足"拦截)
|
||||
if (SecurityUtils.isAdmin(userId))
|
||||
{
|
||||
return java.util.Collections.emptyList();
|
||||
}
|
||||
List<RoleCreditQuotaVo> list = creditQuotaMapper.selectRoleQuotaListByUserId(userId);
|
||||
list.forEach(this::fillAvailable);
|
||||
return list;
|
||||
|
||||
Reference in New Issue
Block a user