|
@@ -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
|