@ -78,8 +78,8 @@ public interface AssesmentMapper {
*创建考核
*@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
*/
@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}")
voidupdateAssesment(Assesmentassesment);
/**
*添加考核记录
*@paramrecord
*/
@Insert({"<script>",
"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}")
AssesmentqueryGetById(Integerid);
@Select("select assessmentNumber from assessment where id=#{assesmentId}")
IntegergetAssesmentNumber(IntegerassesmentId);
/**
*查询行政班级id
*@paramstudentIds
@ -158,8 +159,6 @@ public interface AssesmentMapper {
/**
*修改考核状态
*@paramassesmentId:考核id
*@paramassesmentState:考核状态
*/
@Update({"<script>",
"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 "
+" 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);
/**
*实验班级
@ -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)")
IntegerqueryPointNumber(IntegerassesmentId);
@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);
//创建实验班级
@ -84,7 +84,7 @@ public interface ExperimentalClassMapper {
*@return
*/
@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} ",
@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")