Browse Source

首页屏蔽指定用户的,指定功能,乐教通禁止指定用户登陆使用

zouxuan 10 months ago
parent
commit
8692ab9366

+ 2 - 2
cms/src/main/java/com/ym/mec/cms/service/impl/SysNewsTypeServiceImpl.java

@@ -66,11 +66,11 @@ public class SysNewsTypeServiceImpl extends BaseServiceImpl<Integer, SysNewsType
     public List<SysNewsType> listWithTree(Integer id, String memo,Integer userId,String organIds) {
         SysNewsType newsType = sysNewsTypeDao.get(id);
         //获取需要排除的用户编号
-        String excludeUserIds = sysConfigDao.findConfigValue("excludeUserIds");
+        String excludeUserIds = sysConfigDao.findConfigValue("exclude_user_ids");
         String excludeFunctionIds = null;
         if(StringUtils.isNotEmpty(excludeUserIds) && excludeUserIds.contains(userId.toString())){
             //获取需要排除的功能点编号
-            excludeFunctionIds = sysConfigDao.findConfigValue("excludeFunctionIds");
+            excludeFunctionIds = sysConfigDao.findConfigValue("exclude_function_ids");
         }
         List<SysNewsType> all = sysNewsTypeDao.findAll(null);
         String startTime = DateUtil.format(DateUtil.getFirstDayOfMonth(DateUtil.addMonths(new Date(), -1)),DateUtil.ISO_EXPANDED_DATE_FORMAT);

+ 1 - 1
mec-auth/mec-auth-server/src/main/java/com/ym/mec/auth/service/impl/CbsQrCodeScanServiceImpl.java

@@ -46,7 +46,7 @@ public class CbsQrCodeScanServiceImpl{
             throw new BizException(HttpStatus.UNAUTHORIZED.value(), "用户不存在");
         }
         //获取需要排除的用户编号
-        String excludeUserIds = sysConfigDao.findConfigValue("excludeUserIds");
+        String excludeUserIds = sysConfigDao.findConfigValue("exclude_user_ids");
         if(StringUtils.isNotEmpty(excludeUserIds) && excludeUserIds.contains(sysUser.getId().toString())){
             throw new BizException("扫码登陆失败: 用户已锁定");
         }