Przeglądaj źródła

字典管理报错,接口先注释掉

songxinlu 3 lat temu
rodzic
commit
db1d111fcc

+ 2 - 2
security-center/src/main/java/com/lantone/security/facade/DataAuthManagementFacade.java

@@ -191,7 +191,7 @@ public class DataAuthManagementFacade {
         DataAuth dataAuth = new DataAuth();
         BeanUtils.copyProperties(addAuthVO.getAddDataAuthVO(), dataAuth);
         dataAuth.setGmtCreate(DateUtil.now());
-        dataAuth.setCreator(SysUserUtils.getCurrentPrincipleId());
+        dataAuth.setCreator(SysUserUtils.getCurrentPrincipleId()+"");
         if (dataAuthFacade.save(dataAuth)) {
             //2.插入新建数据权限与系统的关系 sys_software_data_auth
             return saveServiceDataAuth(addAuthVO.getAddDataAuthVO().getSoftwareVOS(), addAuthVO.getRoles(), dataAuth.getId());
@@ -225,7 +225,7 @@ public class DataAuthManagementFacade {
                     roleServiceDataAuth.setRoleId(roleId);
                     roleServiceDataAuth.setSoftwareDataAuthId(softwareDataAuth.getId());
                     roleServiceDataAuth.setGmtCreate(DateUtil.now());
-                    roleServiceDataAuth.setCreator(SysUserUtils.getCurrentPrincipleId());
+                    roleServiceDataAuth.setCreator(SysUserUtils.getCurrentPrincipleId()+"");
                     roleSoftwareDataAuths.add(roleServiceDataAuth);
                 }
                 if (new RoleSoftwareDataAuthServiceImpl().saveBatch(roleSoftwareDataAuths)) {

+ 6 - 6
security-center/src/main/java/com/lantone/security/facade/DictionaryManagementFacade.java

@@ -70,12 +70,12 @@ public class DictionaryManagementFacade {
         dictionaryInfoLambdaQuery.orderByDesc(DictionaryInfo::getGmtCreate);
         IPage<DictionaryInfo> page = dictionaryInfoLambdaQuery.page(pageInfo);
         page.getRecords().forEach(obj->{
-            if(null != obj.getStatus() && 1 == obj.getStatus()){
-                obj.setStatusStr("启用");
-            }
-            if(null != obj.getStatus() && 0 == obj.getStatus()){
-                obj.setStatusStr("禁用");
-            }
+//            if(null != obj.getStatus() && 1 == obj.getStatus()){
+//                obj.setStatusStr("启用");
+//            }
+//            if(null != obj.getStatus() && 0 == obj.getStatus()){
+//                obj.setStatusStr("禁用");
+//            }
         });
         page.setRecords(page.getRecords());
         return page;