|
|
@ -2,6 +2,7 @@ package com.hzu.bookingsystem.repository;
|
|
|
|
|
|
|
|
|
|
|
|
import com.hzu.bookingsystem.VO.WeekVO;
|
|
|
|
import com.hzu.bookingsystem.VO.WeekVO;
|
|
|
|
import com.hzu.bookingsystem.bean.LabRecordBean;
|
|
|
|
import com.hzu.bookingsystem.bean.LabRecordBean;
|
|
|
|
|
|
|
|
import com.hzu.bookingsystem.bean.LabTimeBean;
|
|
|
|
import com.hzu.bookingsystem.dto.LabRecordDTO;
|
|
|
|
import com.hzu.bookingsystem.dto.LabRecordDTO;
|
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
@ -213,6 +214,7 @@ public interface LabRecordDTOMapper {
|
|
|
|
" INNER JOIN tb_user_course ON tb_user.u_id = tb_user_course.u_id " +
|
|
|
|
" INNER JOIN tb_user_course ON tb_user.u_id = tb_user_course.u_id " +
|
|
|
|
"WHERE " +
|
|
|
|
"WHERE " +
|
|
|
|
" tb_lab_record.uc_id = tb_user_course.uc_id " +
|
|
|
|
" tb_lab_record.uc_id = tb_user_course.uc_id " +
|
|
|
|
|
|
|
|
" AND tb_lab_record.`status` = 0 " +
|
|
|
|
" AND tb_lab_time.`year` = #{year} " +
|
|
|
|
" AND tb_lab_time.`year` = #{year} " +
|
|
|
|
" AND tb_lab_time.semester = #{semester} " +
|
|
|
|
" AND tb_lab_time.semester = #{semester} " +
|
|
|
|
" AND tb_lab_time.`day` = #{day} " +
|
|
|
|
" AND tb_lab_time.`day` = #{day} " +
|
|
|
@ -220,4 +222,23 @@ public interface LabRecordDTOMapper {
|
|
|
|
" AND tb_lab.lab_id = #{labId} " +
|
|
|
|
" AND tb_lab.lab_id = #{labId} " +
|
|
|
|
" AND tb_user_course.uc_id = #{uc_id} ")
|
|
|
|
" AND tb_user_course.uc_id = #{uc_id} ")
|
|
|
|
List<LabRecordBean> getRecordDetailLabRecordList(Integer labId, Integer uc_id, String year, Integer semester, Integer day, Integer time);
|
|
|
|
List<LabRecordBean> getRecordDetailLabRecordList(Integer labId, Integer uc_id, String year, Integer semester, Integer day, Integer time);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT " +
|
|
|
|
|
|
|
|
" tb_lab_time.*,tb_lab_time.lt_id as ltId,tb_lab_time.lab_id as labId,tb_lab_time.creator_id as creatorId "+
|
|
|
|
|
|
|
|
" FROM " +
|
|
|
|
|
|
|
|
" tb_lab " +
|
|
|
|
|
|
|
|
" INNER JOIN tb_lab_time ON tb_lab.lab_id = tb_lab_time.lab_id " +
|
|
|
|
|
|
|
|
" INNER JOIN tb_lab_record ON tb_lab_time.lt_id = tb_lab_record.lt_id " +
|
|
|
|
|
|
|
|
" INNER JOIN tb_user " +
|
|
|
|
|
|
|
|
" INNER JOIN tb_user_course ON tb_user.u_id = tb_user_course.u_id " +
|
|
|
|
|
|
|
|
"WHERE " +
|
|
|
|
|
|
|
|
" tb_lab_record.uc_id = tb_user_course.uc_id " +
|
|
|
|
|
|
|
|
" AND tb_lab_record.`status` = 0 " +
|
|
|
|
|
|
|
|
" AND tb_lab_time.`year` = #{year} " +
|
|
|
|
|
|
|
|
" AND tb_lab_time.semester = #{semester} " +
|
|
|
|
|
|
|
|
" AND tb_lab_time.`day` = #{day} " +
|
|
|
|
|
|
|
|
" AND tb_lab_time.time = #{time} " +
|
|
|
|
|
|
|
|
" AND tb_lab.lab_id = #{labId} " +
|
|
|
|
|
|
|
|
" AND tb_user_course.uc_id = #{uc_id} ")
|
|
|
|
|
|
|
|
List<LabTimeBean> getRecordDetailLabTimeList(Integer labId, Integer uc_id, String year, Integer semester, Integer day, Integer time);
|
|
|
|
}
|
|
|
|
}
|
|
|
|