yurk 2 rokov pred
rodič
commit
f3b3047eb9

+ 9 - 7
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/service/impl/PermissionServiceImpl.java

@@ -408,13 +408,15 @@ public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permiss
             }
         }
         System.out.println(message.toString());
-        OperationRecord operationRecord=new OperationRecord();
-        operationRecord.setOperationTime(LocalDateTime.now());
-        operationRecord.setContent(message.toString());
-        operationRecord.setCompanyId(user.getCompanyId());
-        operationRecord.setModuleName("角色权限管理");
-        operationRecord.setOperatorName(user.getName());
-        operationRecordMapper.insert(operationRecord);
+        if(message.length()>0){
+            OperationRecord operationRecord=new OperationRecord();
+            operationRecord.setOperationTime(LocalDateTime.now());
+            operationRecord.setContent(message.toString());
+            operationRecord.setCompanyId(user.getCompanyId());
+            operationRecord.setModuleName("角色权限管理");
+            operationRecord.setOperatorName(user.getName());
+            operationRecordMapper.insert(operationRecord);
+        }
     }
 
     @Override