|
|
|
@ -39,13 +39,47 @@ public interface LabRecordDTOMapper {
|
|
|
|
|
" tb_lab_time.lab_id = tb_lab.lab_id AND " +
|
|
|
|
|
" tb_user_course.u_id = #{uId} " +
|
|
|
|
|
"GROUP BY " +
|
|
|
|
|
" tb_lab_record.uc_id, " +
|
|
|
|
|
" tb_lab_time.`year`, " +
|
|
|
|
|
" tb_lab_time.semester, " +
|
|
|
|
|
" tb_lab_time.`day`, " +
|
|
|
|
|
" tb_lab_time.time, " +
|
|
|
|
|
" tb_lab_record.`status`")
|
|
|
|
|
" tb_lab_record.`status`" +
|
|
|
|
|
"ORDER BY tb_lab_record.create_time desc")
|
|
|
|
|
List<LabRecordDTO> getRecordListByUId(Integer uId);
|
|
|
|
|
|
|
|
|
|
@Select("SELECT " +
|
|
|
|
|
" tb_lab_time.`year`, " +
|
|
|
|
|
" tb_lab_time.semester, " +
|
|
|
|
|
" COUNT( tb_lab_time.`week` ) AS `week`, " +
|
|
|
|
|
" tb_lab_time.`day`, " +
|
|
|
|
|
" tb_lab_time.time, " +
|
|
|
|
|
" tb_lab_record.`status`, " +
|
|
|
|
|
" tb_user_course.`name` AS course_name, " +
|
|
|
|
|
" tb_user_course.population, " +
|
|
|
|
|
" tb_user_course.classes, " +
|
|
|
|
|
" tb_lab.`name` AS lab_name, " +
|
|
|
|
|
" tb_lab.position " +
|
|
|
|
|
"FROM " +
|
|
|
|
|
" tb_lab_time " +
|
|
|
|
|
" INNER JOIN tb_lab_record ON tb_lab_time.lt_id = tb_lab_record.lt_id " +
|
|
|
|
|
" INNER JOIN tb_lab ON tb_lab_time.lab_id = tb_lab.lab_id, " +
|
|
|
|
|
" tb_user_course " +
|
|
|
|
|
"WHERE " +
|
|
|
|
|
" tb_lab_time.lt_id = tb_lab_record.lt_id " +
|
|
|
|
|
" AND tb_lab_record.uc_id = tb_user_course.uc_id " +
|
|
|
|
|
" AND tb_lab_time.lab_id = tb_lab.lab_id " +
|
|
|
|
|
"GROUP BY " +
|
|
|
|
|
" tb_lab_record.uc_id, " +
|
|
|
|
|
" tb_lab_time.`year`, " +
|
|
|
|
|
" tb_lab_time.semester, " +
|
|
|
|
|
" tb_lab_time.`day`, " +
|
|
|
|
|
" tb_lab_time.time, " +
|
|
|
|
|
" tb_lab_record.`status` " +
|
|
|
|
|
"ORDER BY " +
|
|
|
|
|
" tb_lab_record.create_time DESC")
|
|
|
|
|
List<LabRecordDTO> getRecordList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT " +
|
|
|
|
|
" tb_lab_time.`week` " +
|
|
|
|
@ -66,7 +100,6 @@ public interface LabRecordDTOMapper {
|
|
|
|
|
List<WeekVO> getWeekBooked(Integer labId, String year, Integer semester, Integer day, Integer time, Integer uc_id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT " +
|
|
|
|
|
" tb_user_course.`name` AS course_name, " +
|
|
|
|
|
" tb_user.nickname, " +
|
|
|
|
|