模塊標準組文檔V4-周忠君

1.List<UserBO> listPresentStudent(BigInteger seminarId,BigInteger classId)

  • 方法簡介:根據討論課id及班級id,討論課所在的班級出勤學生信息

  • 參數: 1.BigInteger seminarId (討論課的id) ,2.BigInteger classId(班級的id)

  • 返回值: List<UserBO> 處于出勤狀態的所有學生信息

  • 調用的dao方法:

    1.UserDao.listPresentStudent(BigInteger seminarId,BigInteger classId)

2.List<UserBO> listLateStudent(BigInteger seminarId,BigInteger classId)

  • 方法簡介:根據討論課id及班級id,討論課所在的班級遲到學生信息

  • 參數: 1.BigInteger seminarId (討論課的id) ,2.BigInteger classId(班級的id)

  • 返回值: List<UserBO> 處于遲到狀態的所有學生信息

  • 調用的dao方法:

    1.UserDao.listLateStudent(BigInteger seminarId,BigInteger classId)

3.List<UserBO> listAbsenceStudent(BigInteger seminarId,BigInteger classId)

  • 方法簡介:根據討論課id及班級id,討論課所在的班級的缺勤學生信息

  • 參數: 1.BigInteger seminarId (討論課的id) ,2.BigInteger classId(班級的id)

  • 返回值: List<UserBO> 處于缺勤狀態的所有學生信息

  • 調用的dao方法:

    1.UserDao.listAbsenceStudent(BigInteger seminarId,BigInteger classId)

SeminarService(類)

1.SeminarBO getMySeminarBySeminarId(BigInteger seminarId,User userId)

  • 方法簡介:獲得與當前學生相關的討論課的信息(此學生是否是隊長,當前討論課是否處于簽到狀態,當前討論課是否可以選題,當前討論課的組隊方式)

  • 參數: 1.BigInteger seminarId (討論課的id) 2.User userId (用戶的id)

  • 返回值: SeminarBo 討論課的信息

  • 調用的dao方法:

    1.SeminarDao.getSeminarBySeminarId(BigInteger seminarId)

    2.GroupDao. getGroupById(BigInteger seminarId,BigInteger userId)

2.SeminarBO getSeminarDetailBySeminarId(BigInteger seminarId,BigInteger userId)

  • 方法簡介:根據討論課Id獲得該討論課的詳細信息(包括討論課信息,上課地點,教師信息)

  • 參數: 1.BigInteger seminarId (討論課的id)

  • 返回值: SeminarBo 討論課的詳細信息

  • 調用的dao方法:

    1.SeminarDao.getSeminarBySeminarId(BigInteger seminarId)

    2.UserDao.getUserByUserId(BigInteger userId)

    3.ClassDao.getClassById(BigInteger seminarId,BigInteger userId)

TopicService(類)

1.TopicBO getTopicByTopicId(BigInteger topicId)

  • 方法簡介:根據話題Id獲得改話題的信息

  • 參數: 1.BigInteger topicId (話題的id)

  • 返回值: TopicBo 該話題的信息

  • 調用的dao方法:

    1.TopicDao.getTopicByTopicId(BigInteger topicId)

2.boolean updateTopicByTopicId(BigInteger topicId,TopicBO topic)

  • 方法簡介:根據話題的id和topic 的信息修改對應的topic 的內容

  • 參數: 1.BigInteger topicId(話題的id) 2.TopicBO topic(要修改的話題的內容)

  • 返回值: 是否成功修改話題

  • 調用的dao方法:

    1.TopicDao.updateTopicByTopicId(BigInteger topicId,TopicDO topic)

3.boolean deleteTopicByTopicId(BigInteger topicId)

  • 方法簡介:根據討論課Id刪除該話題

  • 參數: 1.BigInteger topicId (話題的id)

  • 返回值: 是否成功刪除話題

  • 調用的dao方法:

    1.TopicDao.deleteTopicByTopicId(BigInteger topicId)

4.List<TopicBO> listTopicBySeminarId(BigInteger seminarId)

  • 方法簡介:根據討論課Id獲得該討論課的所有topic的信息

  • 參數: 1.BigInteger seminarId (討論課的id)

  • 返回值: List<TopicBO> 該討論課的所有topic的信息

  • 調用的dao方法:

    1.TopicDao.listTopicBySeminarId(BigInteger seminarId)

5.BigInteger insertTopicBySeminarId(BigInteger seminarId,TopicBO topic)

  • 方法簡介:根據討論課Id和topic的資料,創建一門屬于該討論課的話題

  • 參數: 1.BigInteger seminarId (討論課的id) , 2.TopicBO topic(話題的所有信息)

  • 返回值: 討論課的id

  • 調用的dao方法:

    1.TopicDao.insertTopicBySeminarId(BigInteger seminarId,TopicDO topic)

GroupService(類)

1.List<GroupBO> listGroupBySeminarId(BigInteger seminarId)

  • 方法簡介:根據討論課Id獲得屬于該討論課的所有小組的信息

  • 參數: 1.BigInteger seminarId (討論課的id)

  • 返回值: List<GroupBO> 所有group的信息

  • 調用的dao方法:

    1.GroupDao.listGroupBySeminarId(BigInteger seminarId)

2.List<GroupBO> listGroupByTopicId(BigInteger topicId)

  • 方法簡介:根據話題Id獲得選擇該話題的所有小組的信息

  • 參數: 1.BigInteger topicId(話題的id)

  • 返回值: List<GroupBO> 所有選擇該話題的所有group的信息

  • 調用的dao方法:

    1.GroupDao. listGroupByTopicId(BigInteger topicId)

3.GroupBO getSeminarGroupById(BigInteger seminarId,BigInteger userId)

  • 方法簡介: 根據討論課Id及用戶id,獲得該用戶所在的討論課的小組的信息

  • 參數: 1.BigInteger seminarId (討論課的id) ,2.BigInteger userId(用戶的id)

  • 返回值: GroupBO Group的相關信息

  • 調用的dao方法:

    1..GroupDao. getGroupById(BigInteger seminarId,BigInteger userId)

ClassService(類)

1.ClassBO getCallGroupStatusById(BigInteger seminarId,BigInteger classId)

  • 方法簡介:根據討論課Id及班級id,獲得該班級的簽到、分組狀態

  • 參數: 1.BigInteger seminarId (討論課的id) ,2.BigInteger classId(班級的id)

  • 返回值: ClassBO 班級的相關信息

  • 調用的dao方法:

    1.SeminarDao.getSeminarBySeminarId(BigInteger seminarId)

    2.ClassDao.getClassByClassId(BigInteger classId)

AttendanceService(類)

1.Boolean updateAttendanceById(Biginteger seminarId,Biginteger classId,Biginteger userId,LocationBO location )

  • 方法簡介:根據討論課id及班級id,學生id,進行簽到

  • 參數: 1.BigInteger seminarId (討論課的id) ,2.BigInteger classId(班級的id),3.BigInteger userId (討論課的id) ,4.LocationBO location 經緯度類

  • 返回值: 是否成功修改考勤狀態

  • 調用的dao方法:
    1.AttendanceDao.updateAttendanceById(integer seminarId,integer classId,integer userId,String status)

Dao(包)

UserDao(類)

1.UserDO getUserByUserId(BigInteger userId)

  • 方法簡介:根據用戶id返回用戶信息

  • 參數: 1.BigInteger userId(用戶的id)

  • 返回值: UserDO 用戶的信息

  • 調用的Mapper方法:UserMapper.selectUserByUserId(BigInteger userId)

2.List<UserDO> listPresentStudent(BigInteger seminarId,BigInteger classId)

  • 方法簡介:根據seminar id和class id去查找所有的遲到學生的信息

  • 參數: 1.BigInteger seminarId(討論課id),2.BigInteger classId(班級id)

  • 返回值: List<UserDO> 所有學生的信息

  • 調用的Mapper方法:UserMapper.selectPresentStudent(BigInteger seminarId,BigInteger classId)

3.List<UserDO> listAbsenceStudent(BigInteger seminarId,BigInteger classId)

  • 方法簡介:根據seminar id和class id去查找所有的缺勤學生的信息

  • 參數: 1.BigInteger seminarId(討論課id),2.BigInteger classId(班級id)

  • 返回值: List<UserDO> 所有學生的信息

  • 調用的Mapper方法:UserMapper.selectAbsenceStudent(BigInteger seminarId,BigInteger classId)

4.List <UserDO> listLateStudent(BigInteger seminarId,BigInteger classId)

  • 方法簡介:根據seminar id和class id去查找所有的遲到學生的信息

  • 參數: 1.BigInteger seminarId(討論課id),2.BigInteger classId(班級id)

  • 返回值: List<UserDO> 所有學生的信息

  • 調用的Mapper方法:UserMapper.selectLateStudent(BigInteger seminarId,BigInteger classId)

SeminarDao(類)

1.SeminarDO getSeminarBySeminarId(BigInteger seminarId)

  • 方法簡介:獲得與當前討論課id的討論課的信息

  • 參數: 1.BigInteger seminarId (討論課的id)

  • 返回值: SeminarDO 討論課的信息

  • 調用的Mapper方法:SeminarMapper.selectSeminarBySeminarId(BigInteger seminarId)

ClassDao(類)

1.ClassDO getClassByClassId(BigInteger classId)

  • 方法簡介:根據班級的id來獲得班級信息

  • 參數: 1.BigInteger classId (班級的id)

  • 返回值: ClassDO 班級的信息

  • 調用的Mapper方法:ClassMapper.selectClassByClassId(BigInteger classId)

2.ClassDO getClassById(BigInteger seminarId,BigInteger userId)

  • 方法簡介:根據用戶id和討論課的id來獲得當前用戶所上討論課的所在班級信息

  • 參數: 1.BigInteger seminarId (討論課的id) 2.BigInteger userId(用戶的id)

  • 返回值: ClassDO 班級的信息

  • 調用的Mapper方法:ClassMapper.selectClassById(BigInteger seminarId,BigInteger userId)

TopicDao(類)

1.TopicDO getTopicByTopicId(BigInteger topicId)

  • 方法簡介:根據話題Id獲得改話題的信息

  • 參數: 1.BigInteger topicId (話題的id)

  • 返回值: TopicDO 該話題的信息

  • 調用的Mapper方法:TopicMapper.selectTopicByTopicId(BigInteger topicId)

2.boolean updateTopicByTopicId(BigInteger topicId,TopicDO topic)

  • 方法簡介:根據話題的id和topic 的信息修改對應的topic 的內容

  • 參數: 1.BigInteger topicId(話題的id) 2.TopicDO topic(要修改的話題的內容)

  • 返回值: 是否成功修改話題

  • 調用的Mapper方法:TopicMapper.updateTopicByTopicId(BigInteger topicId,TopicDO topic)

3.boolean deleteTopicByTopicId(BigInteger topicId)

  • 方法簡介:根據話題的Id刪除該話題

  • 參數: 1.BigInteger topicId (話題的id)

  • 返回值: 是否成功刪除話題

  • 調用的Mapper方法:TopicMapper.deleteTopicByTopicId(BigInteger topicId)

4.List<TopicDO> listTopicBySeminarId(BigInteger seminarId)

  • 方法簡介:根據討論課的id來獲得當前討論課的所有話題信息

  • 參數: 1.BigInteger seminarId (討論課的id)

  • 返回值: .List<TopicDO> 所有討論課的信息

  • 調用的Mapper方法:TopicMapper.selectTopicBySeminarId(BigInteger seminarId)

5.BigInteger insertTopicBySeminarId(BigInteger seminarId,TopicDO topic)

  • 方法簡介:根據討論課的id來獲得當前討論課的所有話題信息

  • 參數: 1.BigInteger seminarId (討論課的id) 2.TopicDO topic(要創建的話題信息)

  • 返回值: 話題的id

  • 調用的Mapper方法:TopicMapper.insertTopicBySeminarId(BigInteger seminarId,TopicDO topic)

GroupDao(類)

1.GroupDO getGroupById(BigInteger seminarId,BigInteger userId)

  • 方法簡介:獲得與當前學生在當前討論課的小組信息(隊長是誰,是否選題等)

  • 參數: 1.BigInteger seminarId (討論課的id) 2.BigInteger userId(學生的id)

  • 返回值: GroupDO 小組的信息

  • 調用的Mapper方法:Groupper.selectGroupById(BigInteger seminarId,BigInteger userId)

2.List<GroupDO> listGroupByTopicId(BigInteger topicId)

  • 方法簡介:根據話題Id獲得選擇該話題的所有小組的信息

  • 參數: 1.BigInteger topicId(話題的id)

  • 返回值: List<GroupDO> 所有選擇該話題的所有group的信息

  • 調用的Mapper方法:GroupMapper. selectGroupByTopicId(BigInteger topicId)

  1. List<GroupDO> listGroupBySeminarId(BigInteger seminarId)
  • 方法簡介:獲得與當前討論課的所有小組信息

  • 參數: 1.BigInteger seminarId (討論課的id)

  • 返回值: List<GroupDO> 所有小組的信息

  • 調用的Mapper方法:GroupMapper.selectGroupBySeminarId(BigInteger seminarId)

AttendanceDao(類)

1.Boolean updateAttendanceById(integer seminarId,integer classId,integer userId,String status)

  • 方法簡介:根據討論課id, 班級id,學生id,在考勤表修改學生的考勤狀態為出勤

  • 參數: 1.BigInteger seminarId (討論課的id) 2.BigInteger classId(班級的id) 3.BigInteger userId(學生的id)4.String status

  • 返回值: 是否成功修改考勤狀態

  • 調用的Mapper方法:AttendanceMapper.updateAttendanceById(integer seminarId,integer classId,integer userId,String status)

Mapper(包)

UserMapper(類)

1.UserDO selectUserByUserId(BigInteger userId)

  • 方法簡介:根據用戶id返回用戶信息

  • 參數: 1.BigInteger userId(用戶的id)

  • 返回值: UserDO 班級的信息

2.List<UserDO> selectPresentStudent(BigInteger seminarId,BigInteger classId)

  • 方法簡介:根據seminar id和class id去查找所有的遲到學生的信息

  • 參數: 1.BigInteger seminarId(討論課id),2.BigInteger classId(班級id)

  • 返回值: List<UserDO> 所有學生的信息

3.List <UserDO> selectAbsenceStudent(BigInteger seminarId,BigInteger classId)

  • 方法簡介:根據seminar id和class id去查找所有的缺勤學生的信息

  • 參數: 1.BigInteger seminarId(討論課id),2.BigInteger classId(班級id)

  • 返回值: List<UserDO> 所有學生的信息

4.List<UserDO> selectLateStudent(BigInteger seminarId,BigInteger classId)

  • 方法簡介:根據seminar id和class id去查找所有的遲到學生的信息

  • 參數: 1.BigInteger seminarId(討論課id),2.BigInteger classId(班級id)

  • 返回值: List<UserDO> 所有學生的信息

SeminarMapper(類)

1.SeminarDO selectSeminarBySeminarId(BigInteger seminarId)

  • 方法簡介:獲得與當前討論課id的討論課的信息

  • 參數: 1.BigInteger seminarId (討論課的id)

  • 返回值: SeminarDO 討論課的信息

ClassMapper(類)

1.ClassDO selectClassByClassId(BigInteger classId)

  • 方法簡介:根據班級的id來獲得班級信息

  • 參數: 1.BigInteger classId (班級的id)

  • 返回值: ClassDO 班級的信息

2.ClassDO selectClassById(BigInteger seminarId,BigInteger userId)

  • 方法簡介:根據用戶id和討論課的id來獲得當前用戶所上討論課的所在班級信息

  • 參數: 1.BigInteger seminarId (討論課的id) 2.BigInteger userId(用戶的id)

  • 返回值: ClassDO 班級的信息

TopicMapper(類)

1.TopicDO selectTopicByTopicId(BigInteger topicId)

  • 方法簡介:根據話題Id獲得改話題的信息

  • 參數: 1.BigInteger topicId (話題的id)

  • 返回值: TopicDO 該話題的信息

2.boolean updateTopicByTopicId(BigInteger topicId,TopicDO topic)

  • 方法簡介:根據話題的id和topic 的信息修改對應的topic 的內容

  • 參數: 1.BigInteger topicId(話題的id) 2.TopicDO topic(要修改的話題的內容)

  • 返回值: 是否成功修改話題

3.boolean deleteTopicByTopicId(BigInteger topicId)

  • 方法簡介:根據討論課Id刪除該話題

  • 參數: 1.BigInteger topicId (話題的id)

  • 返回值: 是否成功刪除話題

4.List<TopicDO> selectTopicBySeminarId(BigInteger seminarId)

  • 方法簡介:根據討論課的id來獲得當前討論課的所有話題信息

  • 參數: 1.BigInteger seminarId (討論課的id)

  • 返回值: .List<TopicDO> 該討論課所有話題的信息

5.BigInteger insertTopicBySeminarId(BigInteger seminarId,TopicDO topic)

  • 方法簡介:根據討論課的id來獲得當前討論課的所有話題信息

  • 參數: 1.BigInteger seminarId (討論課的id) 2.TopicDO topic(要創建的話題信息)

  • 返回值: 話題的id

GroupMapper(類)

1.GroupDO selectGroupById(BigInteger seminarId,BigInteger userId)

  • 方法簡介:獲得與當前學生在當前討論課的小組信息(隊長是誰,是否選題等)

  • 參數: 1.BigInteger seminarId (討論課的id) 2.BigInteger userId(學生的id)

  • 返回值: GroupDo 小組的信息

2.List<GroupDO> selectGroupByTopicId(BigInteger topicId)

  • 方法簡介:根據話題Id獲得選擇該話題的所有小組的信息

  • 參數: 1.BigInteger topicId(話題的id)

  • 返回值: List<GroupDO> 所有選擇該話題的所有group的信息

3.List<GroupDO> selectGroupBySeminarId(BigInteger seminarId)

  • 方法簡介:獲得與當前討論課的所有小組信息

  • 參數: 1.BigInteger seminarId (討論課的id)

  • 返回值: List<GroupDO> 所有小組的信息

AttendanceMapper(類)

1.Boolean updateAttendanceById(integer seminarId,integer classId,integer userId,String status)

  • 方法簡介:根據討論課id, 班級id,學生id,在考勤表修改學生的考勤狀態為出勤

  • 參數: 1.BigInteger seminarId (討論課的id) 2.BigInteger classId

(班級的id) 3.BigInteger userId(學生的id)4.String status 考勤狀態

  • 返回值: 是否成功修改考勤狀態
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。