@ -78,8 +78,8 @@ public interface AssesmentMapper {
*创建考核
*创建考核
*@paramassesment
*@paramassesment
*/
*/
@Insert("insert into assessment (assesmentName,releaseType,creationTime,endTime,timesum,experimentId,classId,assesmentState,assessmentSize,experimentalClassId,staffId,courseId)"
@Insert("insert into assessment (assesmentName,releaseType,creationTime,endTime,timesum,experimentId,classId,assesmentState,assessmentSize,experimentalClassId,staffId,courseId,assessmentNumber)"
@ -88,14 +88,13 @@ public interface AssesmentMapper {
*修改考核
*修改考核
*@paramassesment
*@paramassesment
*/
*/
@Update("update assessment set assesmentName=#{assesmentName},releaseType=#{releaseType},creationTime=#{creationTime},endTime=#{endTime},timesum=#{timesum},assessmentSize=#{assessmentSize},"
@Update("update assessment set assesmentName=#{assesmentName},releaseType=#{releaseType},creationTime=#{creationTime},endTime=#{endTime},timesum=#{timesum},assessmentSize=#{assessmentSize},assessmentNumber=#{assessmentNumber}"
+"experimentId=#{experimentId},assesmentState=#{assesmentState},classId=#{classId},experimentalClassId=#{experimentalClassId} where id=#{id}")
+"experimentId=#{experimentId},assesmentState=#{assesmentState},classId=#{classId},experimentalClassId=#{experimentalClassId} where id=#{id}")
voidupdateAssesment(Assesmentassesment);
voidupdateAssesment(Assesmentassesment);
/**
/**
*添加考核记录
*添加考核记录
*@paramrecord
*/
*/
@Insert({"<script>",
@Insert({"<script>",
"insert into record (projectId,courseId,studentId,assesmentId) values"
"insert into record (projectId,courseId,studentId,assesmentId) values"
@ -112,8 +111,10 @@ public interface AssesmentMapper {
*/
*/
@Select("select id,experimentId,creationTime,endTime,assesmentName,releaseType,timesum,experimentalClassId,classId from assessment where id=#{id}")
@Select("select id,experimentId,creationTime,endTime,assesmentName,releaseType,timesum,experimentalClassId,classId from assessment where id=#{id}")
AssesmentqueryGetById(Integerid);
AssesmentqueryGetById(Integerid);
@Select("select assessmentNumber from assessment where id=#{assesmentId}")
IntegergetAssesmentNumber(IntegerassesmentId);
/**
/**
*查询行政班级id
*查询行政班级id
*@paramstudentIds
*@paramstudentIds
@ -158,8 +159,6 @@ public interface AssesmentMapper {
/**
/**
*修改考核状态
*修改考核状态
*@paramassesmentId:考核id
*@paramassesmentState:考核状态
*/
*/
@Update({"<script>",
@Update({"<script>",
"update assessment set assesmentState=#{assesmentState} "+
"update assessment set assesmentState=#{assesmentState} "+
@ -203,8 +202,7 @@ public interface AssesmentMapper {
@Select("SELECT ass.assesmentName as assesmentName ,ass.creationTime as creationTime,ass.endTime as endTime,ass.assessmentSize as assessmentSize,count(re.score) as actualNumber,st.staffName as staffName "
@Select("SELECT ass.assesmentName as assesmentName ,ass.creationTime as creationTime,ass.endTime as endTime,ass.assessmentSize as assessmentSize,count(re.score) as actualNumber,st.staffName as staffName "
+" FROM (assessment ass left join staff st on ass.staffId=st.staffId) left join record re on ass.id=re.assesmentId WHERE ass.id=#{assesmentId} and re.score is not null")
+" FROM (assessment ass left join staff st on ass.staffId=st.staffId) left join record re on ass.id=re.assesmentId WHERE ass.id=#{assesmentId} and re.score is not null")
AssesmentqueryAssesmentId(IntegerassesmentId);
AssesmentqueryAssesmentId(IntegerassesmentId);
/**
/**
*实验班级
*实验班级
@ -242,8 +240,8 @@ public interface AssesmentMapper {
@Select("select count(judgmentPointsId) from hr_judgment_points where FIND_IN_SET((select experimentId from assessment where id=#{assesmentId}),projectId)")
@Select("select count(judgmentPointsId) from hr_judgment_points where FIND_IN_SET(#{projectId},projectId)")
@Delete("DELETE from experimental_class_student where studentId = #{studentId} and experimentalClassId = #{experimentalClassId}")
@Delete("DELETE from experimental_class_student where studentId = #{studentId} and experimentalClassId = #{intExperimentalClassId}")
voidexperimentClassDeleteStudent(Studentstudent);
voidexperimentClassDeleteStudent(Studentstudent);
//创建实验班级
//创建实验班级
@ -84,7 +84,7 @@ public interface ExperimentalClassMapper {
*@return
*@return
*/
*/
@Select({"<script>",
@Select({"<script>",
"select s.studentId,studentName,studentNumber,gradeName,className from experimental_class_student st,student s,class c,grade g,professional p"
"select s.studentId,studentName,studentNumber,gradeName,className,professionalName from experimental_class_student st,student s,class c,grade g,professional p"
+" where st.studentId=s.studentId and s.classId=c.classId and c.gradeId=g.gradeId and s.professionalId=p.professionalId and st.experimentalClassId=#{experimentalClassId} ",
+" where st.studentId=s.studentId and s.classId=c.classId and c.gradeId=g.gradeId and s.professionalId=p.professionalId and st.experimentalClassId=#{experimentalClassId} ",
@Select("select s.studentId,studentName from student s left join experimental_class_student exs on s.studentId=exs.studentId where exs.experimentalClassId=#{experimentalClassId}")
@Select("select s.studentId,studentName from student s left join experimental_class_student exs on s.studentId=exs.studentId "+
" where exs.experimentalClassId=#{experimentalClassId} GROUP BY s.studentId")