@ -76,6 +79,7 @@ public interface AssesmentMapper {
/**
*创建考核
*
*@paramassesment
*/
@Insert("insert into assessment (assesmentName,releaseType,creationTime,endTime,timesum,experimentId,classId,assesmentState,assessmentSize,experimentalClassId,staffId,courseId,assessmentNumber)"
@ -86,6 +90,7 @@ public interface AssesmentMapper {
/**
*修改考核
*
*@paramassesment
*/
@Update("update assessment set assesmentName=#{assesmentName},releaseType=#{releaseType},creationTime=#{creationTime},endTime=#{endTime},timesum=#{timesum},assessmentSize=#{assessmentSize},assessmentNumber=#{assessmentNumber}"
@ -106,6 +111,7 @@ public interface AssesmentMapper {
/**
*根据考核id查询数据
*
*@paramid
*@return
*/
@ -117,6 +123,7 @@ public interface AssesmentMapper {
/**
*查询行政班级id
*
*@paramstudentIds
*@return
*/
@ -129,6 +136,7 @@ public interface AssesmentMapper {
/**
*创建考核时选中的学生
*
*@paramassesmentId
*@return
*/
@ -138,6 +146,7 @@ public interface AssesmentMapper {
/**
*删除多余的记录信息
*
*@paramassesmentId
*@paramstudents
*/
@ -151,6 +160,7 @@ public interface AssesmentMapper {
/**
*正在参与考核的学生
*
*@return
*/
@Select("select studentId from record re left join assessment ass on re.assesmentId=ass.id where ass.assesmentState=1 and re.assesmentId is not null")
@ -169,33 +179,33 @@ public interface AssesmentMapper {
voidupdateAssesmentState(Assesmentassesment);
/**
*查询实验班级一级标题:创建时间
*@paramschoolId
*
*@paramstaffId
*@return
*/
@Select("select creationTime from experimental_class_ning WHERE isdel=0 and schoolId = #{schoolId} GROUP BY creationTime ORDER BY creationTime desc")
@Select("select creationTime from experimental_class_ning WHERE isdel=0 and founder=(select staffName from staff where staffId=#{staffId}) GROUP BY creationTime ORDER BY creationTime desc")
List<String>queryCreationTime(IntegerstaffId);
/**
*查询实验班级信息,及班级下的学生
*
*@paramcreationTime
*@return
*/
@Select("select experimentalClassId,experimentalClassName from experimental_class_ning where isdel=0 and creationTime=#{creationTime} and schoolId = #{schoolId})")
@Select("select experimentalClassId,experimentalClassName from experimental_class_ning where isdel=0 and creationTime=#{creationTime} and founder=(select staffName from staff where staffId=#{staffId})")