public void InsertGroupGradeByUserId(long topicId, long userId, long groupId, int grade) { try { //调用TopicService中GetSeminarGroupTopicById(long topicId, long groupId)方法 SeminarGroupTopic seminarGroupTopic = _iTopicService.GetSeminarGroupTopicById(topicId, groupId); //调用UserService中的GetUserByUserId(long userId)方法 UserInfo userInfo = _iUserService.GetUserByUserId(userId); //调用自己的dao _iGradeDao.InsertGroupGradeByUserId(seminarGroupTopic, userInfo, grade); } catch (GroupNotFoundException gre) { throw gre; } catch (UserNotFoundException ure) { throw ure; } catch (Exception e) { throw e; } }