模塊標準組文檔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 考勤狀態

  • 返回值: 是否成功修改考勤狀態
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 227,572評論 6 531
  • 序言:濱河連續發生了三起死亡事件,死亡現場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機,發現死者居然都...
    沈念sama閱讀 98,071評論 3 414
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事。” “怎么了?”我有些...
    開封第一講書人閱讀 175,409評論 0 373
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 62,569評論 1 307
  • 正文 為了忘掉前任,我火速辦了婚禮,結果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當我...
    茶點故事閱讀 71,360評論 6 404
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發上,一...
    開封第一講書人閱讀 54,895評論 1 321
  • 那天,我揣著相機與錄音,去河邊找鬼。 笑死,一個胖子當著我的面吹牛,可吹牛的內容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 42,979評論 3 440
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 42,123評論 0 286
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當地人在樹林里發現了一具尸體,經...
    沈念sama閱讀 48,643評論 1 333
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 40,559評論 3 354
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發現自己被綠了。 大學時的朋友給我發了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 42,742評論 1 369
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 38,250評論 5 356
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質發生泄漏。R本人自食惡果不足惜,卻給世界環境...
    茶點故事閱讀 43,981評論 3 346
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 34,363評論 0 25
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 35,622評論 1 280
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個月前我還...
    沈念sama閱讀 51,354評論 3 390
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 47,707評論 2 370