From cedae41074b07a488ead30000c518039eef046f2 Mon Sep 17 00:00:00 2001 From: xiaoCJ <406612557@qq.com> Date: Sun, 28 Apr 2024 17:25:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E5=92=8Cmapper=20xml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tea/TeaExamManageController.java | 44 +- .../tea/TeaGradeManageController.java | 29 +- .../entity/stu_dto/ReceiveDto.java | 17 + .../mapper/SysCaseQuestionStepMapper.java | 2 +- .../mapper/SysObjectiveQuestionMapper.java | 2 +- .../mapper/TeaExamManageMapper.java | 6 +- .../service/stu/impl/StuIndexServiceImpl.java | 13 +- .../tea/impl/TeaGradeManageServiceImpl.java | 79 +- .../resources/mapper/StuStudentExamMapper.xml | 5 +- .../resources/mapper/TeaExamManageMapper.xml | 1034 +++++++++-------- 10 files changed, 646 insertions(+), 585 deletions(-) create mode 100644 src/main/java/com/sztzjy/financial_bigdata/entity/stu_dto/ReceiveDto.java diff --git a/src/main/java/com/sztzjy/financial_bigdata/controller/tea/TeaExamManageController.java b/src/main/java/com/sztzjy/financial_bigdata/controller/tea/TeaExamManageController.java index 880b819..964916e 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/controller/tea/TeaExamManageController.java +++ b/src/main/java/com/sztzjy/financial_bigdata/controller/tea/TeaExamManageController.java @@ -210,34 +210,34 @@ public class TeaExamManageController { List stuUsers = studentExamMapper.getUsersByExamID(examId, keyWord, status); if (!stuUsers.isEmpty()) { for (StuUser stuUser : stuUsers) { - if (stuUser.getPhone().equals("true") && stuUser.getEmail().equals("true")) { - stuUser.setMajor("已提交"); - } else { - stuUser.setMajor("未提交"); - } + if (StringUtils.isBlank(stuUser.getPhone()) || stuUser.getPhone().equals("false")) { + stuUser.setMajor("未提交"); + } else { + stuUser.setMajor("已提交"); + } } } - PageInfo pageInfo = new PageInfo(stuUsers); - return new ResultEntity<>(pageInfo); + PageInfo pageInfo = new PageInfo(stuUsers); + return new ResultEntity<>(pageInfo); } - - @AnonymousAccess - @PostMapping("/reloadExamById") - @ApiOperation("考试管理--指定人重考") - public ResultEntity reloadExamById(@ApiParam("考试管理ID") @RequestParam String examId, @RequestParam String userId) { - StuStudentExamExample studentExamExample = new StuStudentExamExample(); - studentExamExample.createCriteria().andUseridEqualTo(userId).andExamManageIdEqualTo(examId); - List stuStudentExamWithBLOBs = studentExamMapper.selectByExampleWithBLOBs(studentExamExample); - if (stuStudentExamWithBLOBs.isEmpty()) { - return new ResultEntity(HttpStatus.BAD_REQUEST, "学生暂未考试,无需重考"); - } else { - StuStudentExamWithBLOBs stuStudentExamWithBLOBs1 = stuStudentExamWithBLOBs.get(0); - studentExamMapper.deleteByPrimaryKey(stuStudentExamWithBLOBs1.getStudentExamId()); - return new ResultEntity(HttpStatus.OK, "指定重考成功!"); + @AnonymousAccess + @PostMapping("/reloadExamById") + @ApiOperation("考试管理--指定人重考") + public ResultEntity reloadExamById (@ApiParam("考试管理ID") @RequestParam String + examId, @RequestParam String userId){ + StuStudentExamExample studentExamExample = new StuStudentExamExample(); + studentExamExample.createCriteria().andUseridEqualTo(userId).andExamManageIdEqualTo(examId); + List stuStudentExamWithBLOBs = studentExamMapper.selectByExampleWithBLOBs(studentExamExample); + if (stuStudentExamWithBLOBs.isEmpty()) { + return new ResultEntity(HttpStatus.BAD_REQUEST, "学生暂未考试,无需重考"); + } else { + StuStudentExamWithBLOBs stuStudentExamWithBLOBs1 = stuStudentExamWithBLOBs.get(0); + studentExamMapper.deleteByPrimaryKey(stuStudentExamWithBLOBs1.getStudentExamId()); + return new ResultEntity(HttpStatus.OK, "指定重考成功!"); + } } } -} diff --git a/src/main/java/com/sztzjy/financial_bigdata/controller/tea/TeaGradeManageController.java b/src/main/java/com/sztzjy/financial_bigdata/controller/tea/TeaGradeManageController.java index 8e41ca5..1d8eb9a 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/controller/tea/TeaGradeManageController.java +++ b/src/main/java/com/sztzjy/financial_bigdata/controller/tea/TeaGradeManageController.java @@ -215,23 +215,27 @@ public class TeaGradeManageController { @AnonymousAccess @PostMapping("/getGradeReportCase") - @ApiOperation("考试模式--成绩报告案例题questionOriginal所属章节,contentOriginal为考核点数量") //TODO 案例题正确率字段暂无 + @ApiOperation("考试模式--成绩报告案例题questionOriginal所属章节,contentOriginal为考核点数量,Sort为序号") //TODO 案例题正确率字段暂无 public ResultEntity> getGradeReportCase(@RequestParam Integer index, @RequestParam Integer size, @RequestParam String examManageId) { TeaExamManageWithBLOBs teaExamManageWithBLOBs = teaExamManageMapper.selectByPrimaryKey(examManageId); String caseIdList = teaExamManageWithBLOBs.getCaseIdlist(); List list = Arrays.asList(caseIdList.split(",")); - PageHelper.startPage(index, size); - List resultList = sysCaseQuestionStepMapper.getGradeReportCase(list); - PageInfo pageInfo = new PageInfo(resultList); + List resultList = sysCaseQuestionStepMapper.getGradeReportCase(list); + int i = 1; + for (SysCaseQuestionStep sysCaseQuestionStep : resultList) { + sysCaseQuestionStep.setSort(i); + i++; + } + PageInfo pageInfo = PageUtil.pageHelper(resultList, index, size); return new ResultEntity(pageInfo); } @AnonymousAccess @PostMapping("/getGradeReportObjective") - @ApiOperation("考试模式--成绩报告客观题") //TODO 客观题正确率字段暂无 + @ApiOperation("考试模式--成绩报告客观题ObjectiveId为序号") //TODO 客观题正确率字段暂无 public ResultEntity> getGradeReportObjective(@RequestParam Integer index, @RequestParam Integer size, @RequestParam String examManageId) { @@ -239,7 +243,7 @@ public class TeaGradeManageController { if (teaExamManageWithBLOBs == null) { return null; } - List list = new ArrayList(); + List list = new ArrayList<>(); if (StringUtils.isNotBlank(teaExamManageWithBLOBs.getSingleIdlist())) { String singleIdList = teaExamManageWithBLOBs.getSingleIdlist(); String[] split = singleIdList.split(","); @@ -256,9 +260,16 @@ public class TeaGradeManageController { list.addAll(Arrays.asList(split)); } - PageHelper.startPage(index, size); - List resultList = sysObjectiveQuestionMapper.getGradeReportObjective(list); - PageInfo pageInfo = new PageInfo(resultList); + List resultList = sysObjectiveQuestionMapper.getGradeReportObjective(list); + if (!resultList.isEmpty()){ + int i =0; + for (SysObjectiveQuestion sysObjectiveQuestion : resultList) { + i++; + sysObjectiveQuestion.setObjectiveId(Integer.toString(i)); + } + } + + PageInfo pageInfo = PageUtil.pageHelper(resultList, index, size); return new ResultEntity(pageInfo); } diff --git a/src/main/java/com/sztzjy/financial_bigdata/entity/stu_dto/ReceiveDto.java b/src/main/java/com/sztzjy/financial_bigdata/entity/stu_dto/ReceiveDto.java new file mode 100644 index 0000000..cb046ab --- /dev/null +++ b/src/main/java/com/sztzjy/financial_bigdata/entity/stu_dto/ReceiveDto.java @@ -0,0 +1,17 @@ +package com.sztzjy.financial_bigdata.entity.stu_dto; + +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.math.BigDecimal; + +/** + * @Author xcj + * @Date 2024/4/28 + */ +@Data +@NoArgsConstructor +public class ReceiveDto { + private BigDecimal totalScore; + private BigDecimal stuScore; +} diff --git a/src/main/java/com/sztzjy/financial_bigdata/mapper/SysCaseQuestionStepMapper.java b/src/main/java/com/sztzjy/financial_bigdata/mapper/SysCaseQuestionStepMapper.java index 9ecf132..4ecbc29 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/mapper/SysCaseQuestionStepMapper.java +++ b/src/main/java/com/sztzjy/financial_bigdata/mapper/SysCaseQuestionStepMapper.java @@ -33,6 +33,6 @@ public interface SysCaseQuestionStepMapper { int updateByPrimaryKey(SysCaseQuestionStep record); - List getGradeReportCase(@Param("list") List list); + List getGradeReportCase(@Param("list") List list); } \ No newline at end of file diff --git a/src/main/java/com/sztzjy/financial_bigdata/mapper/SysObjectiveQuestionMapper.java b/src/main/java/com/sztzjy/financial_bigdata/mapper/SysObjectiveQuestionMapper.java index ea3d56b..cb1cc7d 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/mapper/SysObjectiveQuestionMapper.java +++ b/src/main/java/com/sztzjy/financial_bigdata/mapper/SysObjectiveQuestionMapper.java @@ -49,5 +49,5 @@ public interface SysObjectiveQuestionMapper { List selectRandomObjectiveJudge(); - List getGradeReportObjective(@Param("list") List list); + List getGradeReportObjective(@Param("list") List list); } \ No newline at end of file diff --git a/src/main/java/com/sztzjy/financial_bigdata/mapper/TeaExamManageMapper.java b/src/main/java/com/sztzjy/financial_bigdata/mapper/TeaExamManageMapper.java index 1f889cf..7b26798 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/mapper/TeaExamManageMapper.java +++ b/src/main/java/com/sztzjy/financial_bigdata/mapper/TeaExamManageMapper.java @@ -8,6 +8,7 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; +import com.sztzjy.financial_bigdata.entity.stu_dto.ReceiveDto; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; @@ -53,8 +54,5 @@ public interface TeaExamManageMapper { @Select("select exam_name,exam_manage_id from tea_exam_manage where school_id =#{schoolId}") List> selectNameAndIdBySchoolId(@Param("schoolId")String schoolId); - @Select("select sse.total_score,sum(tam.case_score+tam.single_score+tam.many_score+tam.judge_score) " + - "FROM tea_exam_manage tam JOIN stu_student_exam sse ON tam.exam_manage_id = sse.exam_manage_id" + - " GROUP BY sse.total_score ORDER BY MAX(tam.end_time) limit 1") - Map getLastEaxmScore(); + ReceiveDto getLastExamScore(@Param("userId")String userId); } \ No newline at end of file diff --git a/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/StuIndexServiceImpl.java b/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/StuIndexServiceImpl.java index bbdf3fe..8d26cfa 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/StuIndexServiceImpl.java +++ b/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/StuIndexServiceImpl.java @@ -2,12 +2,15 @@ package com.sztzjy.financial_bigdata.service.stu.impl; import com.sztzjy.financial_bigdata.config.Constant; import com.sztzjy.financial_bigdata.entity.*; +import com.sztzjy.financial_bigdata.entity.stu_dto.ReceiveDto; import com.sztzjy.financial_bigdata.entity.stu_dto.StuTheoryIndexInfoDto; import com.sztzjy.financial_bigdata.mapper.*; import com.sztzjy.financial_bigdata.service.stu.StuIndexService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import java.math.BigDecimal; +import java.math.RoundingMode; import java.util.List; import java.util.Map; @@ -68,7 +71,13 @@ public class StuIndexServiceImpl implements StuIndexService { int examSize = stuStudentExamWithBLOBs.size(); //参与考核次数 stuTheoryIndexInfoDto.setTaskNum(examSize); -// MapteaExamManageMapper.getLastEaxmScore();//拿到最近考试的得分和 老师设置的题目总分 // TODO 最近一次考核正确率 + ReceiveDto receiveDto = teaExamManageMapper.getLastExamScore(userId);//拿到最近考试的得分和 老师设置的题目总分 + BigDecimal totalScore = receiveDto.getTotalScore(); + BigDecimal stuScore = receiveDto.getStuScore(); + if (totalScore.intValue()!=0&&stuScore.intValue()!=0){ + BigDecimal bigDecimal = totalScore.divide(stuScore,2,RoundingMode.HALF_UP).multiply(BigDecimal.valueOf(100)); //学生得分 / 总分 * 100 + stuTheoryIndexInfoDto.setLastTaskAccuracy(bigDecimal); //最近一次考核正确率 + } int lastRank = studentExamMapper.selectLastExamRank(userId); // 最近一次考核排名 @@ -97,7 +106,7 @@ public class StuIndexServiceImpl implements StuIndexService { stuTheoryIndexInfoDto.setAssetNum(num); //资源数量 SysResourceLearning sysResourceLearning = sysResourceLearningMapper.selectByPrimaryKey(schoolId); - if (sysResourceLearning!=null) { + if (sysResourceLearning != null) { Integer learningNum = sysResourceLearning.getLearningNum(); Integer learningTime = sysResourceLearning.getLearningTime(); stuTheoryIndexInfoDto.setAssetStudyNum(learningNum); //学习人数 diff --git a/src/main/java/com/sztzjy/financial_bigdata/service/tea/impl/TeaGradeManageServiceImpl.java b/src/main/java/com/sztzjy/financial_bigdata/service/tea/impl/TeaGradeManageServiceImpl.java index e9f5842..f368d98 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/service/tea/impl/TeaGradeManageServiceImpl.java +++ b/src/main/java/com/sztzjy/financial_bigdata/service/tea/impl/TeaGradeManageServiceImpl.java @@ -113,52 +113,53 @@ public class TeaGradeManageServiceImpl implements ITeaGradeManageService { } else { teaExaminationDetailsDto.setExamActualNum(stuStudentExamWithBLOBs.size()); //否则为集合的长度 for (StuStudentExamWithBLOBs stuStudentExamWithBLOB : stuStudentExamWithBLOBs) { //不为就求分数 - BigDecimal score = stuStudentExamWithBLOB.getTotalScore(); - int passThreshold = 60; // 60是及格分数 - int totalStudents = stuStudentExamWithBLOBs.size(); - int totalScore = 0; - totalScore += score.intValue(); - - if (score.intValue() >= passThreshold) { - passNum++; - } - - // 更新最高分和最低分 - if (score.intValue() > topScore) { - topScore = score.intValue(); - } - if (score.intValue() < lowScore) { - lowScore = score.intValue(); + if (stuStudentExamWithBLOB.getTotalScore()==null){ + continue; } + BigDecimal score = stuStudentExamWithBLOB.getTotalScore(); + int passThreshold = 60; // 60是及格分数 + int totalStudents = stuStudentExamWithBLOBs.size(); + int totalScore = 0; + totalScore += score.intValue(); + if (score.intValue() >= passThreshold) { + passNum++; + } + // 更新最高分和最低分 + if (score.intValue() > topScore) { + topScore = score.intValue(); + } + if (score.intValue() < lowScore) { + lowScore = score.intValue(); + } - // 更新不同成绩等级的学生人数 - if (score.intValue() >= 90) { - excellentNum++; - } else if (score.intValue() >= 80) { - goodNum++; - } else if (score.intValue() >= 60) { - generalNum++; - } else { - failNumber++; - } + // 更新不同成绩等级的学生人数 + if (score.intValue() >= 90) { + excellentNum++; + } else if (score.intValue() >= 80) { + goodNum++; + } else if (score.intValue() >= 60) { + generalNum++; + } else { + failNumber++; + } // 计算平均分 - if (totalStudents > 0) { - avgScore = totalScore / totalStudents; - } + if (totalStudents > 0) { + avgScore = totalScore / totalStudents; + } // 将计算出的值设置到 TeaExaminationDetailsDto 对象中 - teaExaminationDetailsDto.setExamPassNum(passNum); - teaExaminationDetailsDto.setTopScore(topScore); - teaExaminationDetailsDto.setLossScore(lowScore); - teaExaminationDetailsDto.setAverageScore(avgScore); - teaExaminationDetailsDto.setExcellentNumber(excellentNum); - teaExaminationDetailsDto.setGoodNumber(goodNum); - teaExaminationDetailsDto.setGeneralNum(generalNum); - teaExaminationDetailsDto.setFailingNumber(failNumber); - teaExaminationDetailsDto.setCaseName(""); //todo 补充 暂时没有 + teaExaminationDetailsDto.setExamPassNum(passNum); + teaExaminationDetailsDto.setTopScore(topScore); + teaExaminationDetailsDto.setLossScore(lowScore); + teaExaminationDetailsDto.setAverageScore(avgScore); + teaExaminationDetailsDto.setExcellentNumber(excellentNum); + teaExaminationDetailsDto.setGoodNumber(goodNum); + teaExaminationDetailsDto.setGeneralNum(generalNum); + teaExaminationDetailsDto.setFailingNumber(failNumber); + teaExaminationDetailsDto.setCaseName(""); //todo 补充 暂时没有 // 返回填充好数值的 teaExaminationDetailsDto 对象 + } } - } return teaExaminationDetailsDto; } diff --git a/src/main/resources/mapper/StuStudentExamMapper.xml b/src/main/resources/mapper/StuStudentExamMapper.xml index e4a763f..5e3a715 100644 --- a/src/main/resources/mapper/StuStudentExamMapper.xml +++ b/src/main/resources/mapper/StuStudentExamMapper.xml @@ -411,7 +411,6 @@ - diff --git a/src/main/resources/mapper/TeaExamManageMapper.xml b/src/main/resources/mapper/TeaExamManageMapper.xml index 0981cbe..b83bbd0 100644 --- a/src/main/resources/mapper/TeaExamManageMapper.xml +++ b/src/main/resources/mapper/TeaExamManageMapper.xml @@ -1,535 +1,561 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + - - - - - - - exam_manage_id, school_id, user_id, exam_name, start_time, end_time, logo_address, + + + + exam_manage_id + , school_id, user_id, exam_name, start_time, end_time, logo_address, exam_Description, Objective_weight, case_weight, single_score, many_score, judge_score, case_score - - - single_idList, many_idList, judge_idList, case_idList, single_answer, many_answer, + + + single_idList + , many_idList, judge_idList, case_idList, single_answer, many_answer, judge_answer - - - - - - delete from tea_exam_manage - where exam_manage_id = #{examManageId,jdbcType=VARCHAR} - - - delete from tea_exam_manage - - - - - - insert into tea_exam_manage (exam_manage_id, school_id, user_id, - exam_name, start_time, end_time, - logo_address, exam_Description, Objective_weight, - case_weight, single_score, many_score, - judge_score, case_score, single_idList, - many_idList, judge_idList, case_idList, - single_answer, many_answer, judge_answer - ) - values (#{examManageId,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, - #{examName,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, - #{logoAddress,jdbcType=VARCHAR}, #{examDescription,jdbcType=VARCHAR}, #{objectiveWeight,jdbcType=DECIMAL}, - #{caseWeight,jdbcType=DECIMAL}, #{singleScore,jdbcType=DECIMAL}, #{manyScore,jdbcType=DECIMAL}, - #{judgeScore,jdbcType=DECIMAL}, #{caseScore,jdbcType=DECIMAL}, #{singleIdlist,jdbcType=LONGVARCHAR}, - #{manyIdlist,jdbcType=LONGVARCHAR}, #{judgeIdlist,jdbcType=LONGVARCHAR}, #{caseIdlist,jdbcType=LONGVARCHAR}, - #{singleAnswer,jdbcType=LONGVARCHAR}, #{manyAnswer,jdbcType=LONGVARCHAR}, #{judgeAnswer,jdbcType=LONGVARCHAR} - ) - - - insert into tea_exam_manage - - - exam_manage_id, - - - school_id, - - - user_id, - - - exam_name, - - - start_time, - - - end_time, - - - logo_address, - - - exam_Description, - - - Objective_weight, - - - case_weight, - - - single_score, - - - many_score, - - - judge_score, - - - case_score, - - - single_idList, - - - many_idList, - - - judge_idList, - - - case_idList, - - - single_answer, - - - many_answer, - - - judge_answer, - - - - - #{examManageId,jdbcType=VARCHAR}, - - - #{schoolId,jdbcType=VARCHAR}, - - - #{userId,jdbcType=VARCHAR}, - - - #{examName,jdbcType=VARCHAR}, - - - #{startTime,jdbcType=TIMESTAMP}, - - - #{endTime,jdbcType=TIMESTAMP}, - - - #{logoAddress,jdbcType=VARCHAR}, - - - #{examDescription,jdbcType=VARCHAR}, - - - #{objectiveWeight,jdbcType=DECIMAL}, - - - #{caseWeight,jdbcType=DECIMAL}, - - - #{singleScore,jdbcType=DECIMAL}, - - - #{manyScore,jdbcType=DECIMAL}, - - - #{judgeScore,jdbcType=DECIMAL}, - - - #{caseScore,jdbcType=DECIMAL}, - - - #{singleIdlist,jdbcType=LONGVARCHAR}, - - - #{manyIdlist,jdbcType=LONGVARCHAR}, - - - #{judgeIdlist,jdbcType=LONGVARCHAR}, - - - #{caseIdlist,jdbcType=LONGVARCHAR}, - - - #{singleAnswer,jdbcType=LONGVARCHAR}, - - - #{manyAnswer,jdbcType=LONGVARCHAR}, - - - #{judgeAnswer,jdbcType=LONGVARCHAR}, - - - - - - update tea_exam_manage - - - exam_manage_id = #{record.examManageId,jdbcType=VARCHAR}, - - + + + + + + delete + from tea_exam_manage + where exam_manage_id = #{examManageId,jdbcType=VARCHAR} + + + delete from tea_exam_manage + + + + + + insert into tea_exam_manage (exam_manage_id, school_id, user_id, + exam_name, start_time, end_time, + logo_address, exam_Description, Objective_weight, + case_weight, single_score, many_score, + judge_score, case_score, single_idList, + many_idList, judge_idList, case_idList, + single_answer, many_answer, judge_answer) + values (#{examManageId,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, + #{examName,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, + #{logoAddress,jdbcType=VARCHAR}, #{examDescription,jdbcType=VARCHAR}, + #{objectiveWeight,jdbcType=DECIMAL}, + #{caseWeight,jdbcType=DECIMAL}, #{singleScore,jdbcType=DECIMAL}, #{manyScore,jdbcType=DECIMAL}, + #{judgeScore,jdbcType=DECIMAL}, #{caseScore,jdbcType=DECIMAL}, #{singleIdlist,jdbcType=LONGVARCHAR}, + #{manyIdlist,jdbcType=LONGVARCHAR}, #{judgeIdlist,jdbcType=LONGVARCHAR}, + #{caseIdlist,jdbcType=LONGVARCHAR}, + #{singleAnswer,jdbcType=LONGVARCHAR}, #{manyAnswer,jdbcType=LONGVARCHAR}, + #{judgeAnswer,jdbcType=LONGVARCHAR}) + + + insert into tea_exam_manage + + + exam_manage_id, + + + school_id, + + + user_id, + + + exam_name, + + + start_time, + + + end_time, + + + logo_address, + + + exam_Description, + + + Objective_weight, + + + case_weight, + + + single_score, + + + many_score, + + + judge_score, + + + case_score, + + + single_idList, + + + many_idList, + + + judge_idList, + + + case_idList, + + + single_answer, + + + many_answer, + + + judge_answer, + + + + + #{examManageId,jdbcType=VARCHAR}, + + + #{schoolId,jdbcType=VARCHAR}, + + + #{userId,jdbcType=VARCHAR}, + + + #{examName,jdbcType=VARCHAR}, + + + #{startTime,jdbcType=TIMESTAMP}, + + + #{endTime,jdbcType=TIMESTAMP}, + + + #{logoAddress,jdbcType=VARCHAR}, + + + #{examDescription,jdbcType=VARCHAR}, + + + #{objectiveWeight,jdbcType=DECIMAL}, + + + #{caseWeight,jdbcType=DECIMAL}, + + + #{singleScore,jdbcType=DECIMAL}, + + + #{manyScore,jdbcType=DECIMAL}, + + + #{judgeScore,jdbcType=DECIMAL}, + + + #{caseScore,jdbcType=DECIMAL}, + + + #{singleIdlist,jdbcType=LONGVARCHAR}, + + + #{manyIdlist,jdbcType=LONGVARCHAR}, + + + #{judgeIdlist,jdbcType=LONGVARCHAR}, + + + #{caseIdlist,jdbcType=LONGVARCHAR}, + + + #{singleAnswer,jdbcType=LONGVARCHAR}, + + + #{manyAnswer,jdbcType=LONGVARCHAR}, + + + #{judgeAnswer,jdbcType=LONGVARCHAR}, + + + + + + update tea_exam_manage + + + exam_manage_id = #{record.examManageId,jdbcType=VARCHAR}, + + + school_id = #{record.schoolId,jdbcType=VARCHAR}, + + + user_id = #{record.userId,jdbcType=VARCHAR}, + + + exam_name = #{record.examName,jdbcType=VARCHAR}, + + + start_time = #{record.startTime,jdbcType=TIMESTAMP}, + + + end_time = #{record.endTime,jdbcType=TIMESTAMP}, + + + logo_address = #{record.logoAddress,jdbcType=VARCHAR}, + + + exam_Description = #{record.examDescription,jdbcType=VARCHAR}, + + + Objective_weight = #{record.objectiveWeight,jdbcType=DECIMAL}, + + + case_weight = #{record.caseWeight,jdbcType=DECIMAL}, + + + single_score = #{record.singleScore,jdbcType=DECIMAL}, + + + many_score = #{record.manyScore,jdbcType=DECIMAL}, + + + judge_score = #{record.judgeScore,jdbcType=DECIMAL}, + + + case_score = #{record.caseScore,jdbcType=DECIMAL}, + + + single_idList = #{record.singleIdlist,jdbcType=LONGVARCHAR}, + + + many_idList = #{record.manyIdlist,jdbcType=LONGVARCHAR}, + + + judge_idList = #{record.judgeIdlist,jdbcType=LONGVARCHAR}, + + + case_idList = #{record.caseIdlist,jdbcType=LONGVARCHAR}, + + + single_answer = #{record.singleAnswer,jdbcType=LONGVARCHAR}, + + + many_answer = #{record.manyAnswer,jdbcType=LONGVARCHAR}, + + + judge_answer = #{record.judgeAnswer,jdbcType=LONGVARCHAR}, + + + + + + + + update tea_exam_manage + set exam_manage_id = #{record.examManageId,jdbcType=VARCHAR}, school_id = #{record.schoolId,jdbcType=VARCHAR}, - - user_id = #{record.userId,jdbcType=VARCHAR}, - - exam_name = #{record.examName,jdbcType=VARCHAR}, - - start_time = #{record.startTime,jdbcType=TIMESTAMP}, - - end_time = #{record.endTime,jdbcType=TIMESTAMP}, - - logo_address = #{record.logoAddress,jdbcType=VARCHAR}, - - exam_Description = #{record.examDescription,jdbcType=VARCHAR}, - - Objective_weight = #{record.objectiveWeight,jdbcType=DECIMAL}, - - case_weight = #{record.caseWeight,jdbcType=DECIMAL}, - - single_score = #{record.singleScore,jdbcType=DECIMAL}, - - many_score = #{record.manyScore,jdbcType=DECIMAL}, - - judge_score = #{record.judgeScore,jdbcType=DECIMAL}, - - case_score = #{record.caseScore,jdbcType=DECIMAL}, - - single_idList = #{record.singleIdlist,jdbcType=LONGVARCHAR}, - - many_idList = #{record.manyIdlist,jdbcType=LONGVARCHAR}, - - judge_idList = #{record.judgeIdlist,jdbcType=LONGVARCHAR}, - - case_idList = #{record.caseIdlist,jdbcType=LONGVARCHAR}, - - single_answer = #{record.singleAnswer,jdbcType=LONGVARCHAR}, - - many_answer = #{record.manyAnswer,jdbcType=LONGVARCHAR}, - - - judge_answer = #{record.judgeAnswer,jdbcType=LONGVARCHAR}, - - - - - - - - update tea_exam_manage - set exam_manage_id = #{record.examManageId,jdbcType=VARCHAR}, - school_id = #{record.schoolId,jdbcType=VARCHAR}, - user_id = #{record.userId,jdbcType=VARCHAR}, - exam_name = #{record.examName,jdbcType=VARCHAR}, - start_time = #{record.startTime,jdbcType=TIMESTAMP}, - end_time = #{record.endTime,jdbcType=TIMESTAMP}, - logo_address = #{record.logoAddress,jdbcType=VARCHAR}, - exam_Description = #{record.examDescription,jdbcType=VARCHAR}, - Objective_weight = #{record.objectiveWeight,jdbcType=DECIMAL}, - case_weight = #{record.caseWeight,jdbcType=DECIMAL}, - single_score = #{record.singleScore,jdbcType=DECIMAL}, - many_score = #{record.manyScore,jdbcType=DECIMAL}, - judge_score = #{record.judgeScore,jdbcType=DECIMAL}, - case_score = #{record.caseScore,jdbcType=DECIMAL}, - single_idList = #{record.singleIdlist,jdbcType=LONGVARCHAR}, - many_idList = #{record.manyIdlist,jdbcType=LONGVARCHAR}, - judge_idList = #{record.judgeIdlist,jdbcType=LONGVARCHAR}, - case_idList = #{record.caseIdlist,jdbcType=LONGVARCHAR}, - single_answer = #{record.singleAnswer,jdbcType=LONGVARCHAR}, - many_answer = #{record.manyAnswer,jdbcType=LONGVARCHAR}, - judge_answer = #{record.judgeAnswer,jdbcType=LONGVARCHAR} - - - - - - update tea_exam_manage - set exam_manage_id = #{record.examManageId,jdbcType=VARCHAR}, - school_id = #{record.schoolId,jdbcType=VARCHAR}, - user_id = #{record.userId,jdbcType=VARCHAR}, - exam_name = #{record.examName,jdbcType=VARCHAR}, - start_time = #{record.startTime,jdbcType=TIMESTAMP}, - end_time = #{record.endTime,jdbcType=TIMESTAMP}, - logo_address = #{record.logoAddress,jdbcType=VARCHAR}, - exam_Description = #{record.examDescription,jdbcType=VARCHAR}, - Objective_weight = #{record.objectiveWeight,jdbcType=DECIMAL}, - case_weight = #{record.caseWeight,jdbcType=DECIMAL}, - single_score = #{record.singleScore,jdbcType=DECIMAL}, - many_score = #{record.manyScore,jdbcType=DECIMAL}, - judge_score = #{record.judgeScore,jdbcType=DECIMAL}, - case_score = #{record.caseScore,jdbcType=DECIMAL} - - - - - - update tea_exam_manage - - - school_id = #{schoolId,jdbcType=VARCHAR}, - - - user_id = #{userId,jdbcType=VARCHAR}, - - - exam_name = #{examName,jdbcType=VARCHAR}, - - - start_time = #{startTime,jdbcType=TIMESTAMP}, - - - end_time = #{endTime,jdbcType=TIMESTAMP}, - - - logo_address = #{logoAddress,jdbcType=VARCHAR}, - - - exam_Description = #{examDescription,jdbcType=VARCHAR}, - - - Objective_weight = #{objectiveWeight,jdbcType=DECIMAL}, - - - case_weight = #{caseWeight,jdbcType=DECIMAL}, - - - single_score = #{singleScore,jdbcType=DECIMAL}, - - - many_score = #{manyScore,jdbcType=DECIMAL}, - - - judge_score = #{judgeScore,jdbcType=DECIMAL}, - - - case_score = #{caseScore,jdbcType=DECIMAL}, - - - single_idList = #{singleIdlist,jdbcType=LONGVARCHAR}, - - - many_idList = #{manyIdlist,jdbcType=LONGVARCHAR}, - - - judge_idList = #{judgeIdlist,jdbcType=LONGVARCHAR}, - - - case_idList = #{caseIdlist,jdbcType=LONGVARCHAR}, - - - single_answer = #{singleAnswer,jdbcType=LONGVARCHAR}, - - - many_answer = #{manyAnswer,jdbcType=LONGVARCHAR}, - - - judge_answer = #{judgeAnswer,jdbcType=LONGVARCHAR}, - - - where exam_manage_id = #{examManageId,jdbcType=VARCHAR} - - - update tea_exam_manage - set school_id = #{schoolId,jdbcType=VARCHAR}, - user_id = #{userId,jdbcType=VARCHAR}, - exam_name = #{examName,jdbcType=VARCHAR}, - start_time = #{startTime,jdbcType=TIMESTAMP}, - end_time = #{endTime,jdbcType=TIMESTAMP}, - logo_address = #{logoAddress,jdbcType=VARCHAR}, - exam_Description = #{examDescription,jdbcType=VARCHAR}, - Objective_weight = #{objectiveWeight,jdbcType=DECIMAL}, - case_weight = #{caseWeight,jdbcType=DECIMAL}, - single_score = #{singleScore,jdbcType=DECIMAL}, - many_score = #{manyScore,jdbcType=DECIMAL}, - judge_score = #{judgeScore,jdbcType=DECIMAL}, - case_score = #{caseScore,jdbcType=DECIMAL}, - single_idList = #{singleIdlist,jdbcType=LONGVARCHAR}, - many_idList = #{manyIdlist,jdbcType=LONGVARCHAR}, - judge_idList = #{judgeIdlist,jdbcType=LONGVARCHAR}, - case_idList = #{caseIdlist,jdbcType=LONGVARCHAR}, - single_answer = #{singleAnswer,jdbcType=LONGVARCHAR}, - many_answer = #{manyAnswer,jdbcType=LONGVARCHAR}, - judge_answer = #{judgeAnswer,jdbcType=LONGVARCHAR} - where exam_manage_id = #{examManageId,jdbcType=VARCHAR} - - - update tea_exam_manage - set school_id = #{schoolId,jdbcType=VARCHAR}, - user_id = #{userId,jdbcType=VARCHAR}, - exam_name = #{examName,jdbcType=VARCHAR}, - start_time = #{startTime,jdbcType=TIMESTAMP}, - end_time = #{endTime,jdbcType=TIMESTAMP}, - logo_address = #{logoAddress,jdbcType=VARCHAR}, - exam_Description = #{examDescription,jdbcType=VARCHAR}, - Objective_weight = #{objectiveWeight,jdbcType=DECIMAL}, - case_weight = #{caseWeight,jdbcType=DECIMAL}, - single_score = #{singleScore,jdbcType=DECIMAL}, - many_score = #{manyScore,jdbcType=DECIMAL}, - judge_score = #{judgeScore,jdbcType=DECIMAL}, - case_score = #{caseScore,jdbcType=DECIMAL} - where exam_manage_id = #{examManageId,jdbcType=VARCHAR} - + judge_answer = #{record.judgeAnswer,jdbcType=LONGVARCHAR} + + + + + + update tea_exam_manage + set exam_manage_id = #{record.examManageId,jdbcType=VARCHAR}, + school_id = #{record.schoolId,jdbcType=VARCHAR}, + user_id = #{record.userId,jdbcType=VARCHAR}, + exam_name = #{record.examName,jdbcType=VARCHAR}, + start_time = #{record.startTime,jdbcType=TIMESTAMP}, + end_time = #{record.endTime,jdbcType=TIMESTAMP}, + logo_address = #{record.logoAddress,jdbcType=VARCHAR}, + exam_Description = #{record.examDescription,jdbcType=VARCHAR}, + Objective_weight = #{record.objectiveWeight,jdbcType=DECIMAL}, + case_weight = #{record.caseWeight,jdbcType=DECIMAL}, + single_score = #{record.singleScore,jdbcType=DECIMAL}, + many_score = #{record.manyScore,jdbcType=DECIMAL}, + judge_score = #{record.judgeScore,jdbcType=DECIMAL}, + case_score = #{record.caseScore,jdbcType=DECIMAL} + + + + + + update tea_exam_manage + + + school_id = #{schoolId,jdbcType=VARCHAR}, + + + user_id = #{userId,jdbcType=VARCHAR}, + + + exam_name = #{examName,jdbcType=VARCHAR}, + + + start_time = #{startTime,jdbcType=TIMESTAMP}, + + + end_time = #{endTime,jdbcType=TIMESTAMP}, + + + logo_address = #{logoAddress,jdbcType=VARCHAR}, + + + exam_Description = #{examDescription,jdbcType=VARCHAR}, + + + Objective_weight = #{objectiveWeight,jdbcType=DECIMAL}, + + + case_weight = #{caseWeight,jdbcType=DECIMAL}, + + + single_score = #{singleScore,jdbcType=DECIMAL}, + + + many_score = #{manyScore,jdbcType=DECIMAL}, + + + judge_score = #{judgeScore,jdbcType=DECIMAL}, + + + case_score = #{caseScore,jdbcType=DECIMAL}, + + + single_idList = #{singleIdlist,jdbcType=LONGVARCHAR}, + + + many_idList = #{manyIdlist,jdbcType=LONGVARCHAR}, + + + judge_idList = #{judgeIdlist,jdbcType=LONGVARCHAR}, + + + case_idList = #{caseIdlist,jdbcType=LONGVARCHAR}, + + + single_answer = #{singleAnswer,jdbcType=LONGVARCHAR}, + + + many_answer = #{manyAnswer,jdbcType=LONGVARCHAR}, + + + judge_answer = #{judgeAnswer,jdbcType=LONGVARCHAR}, + + + where exam_manage_id = #{examManageId,jdbcType=VARCHAR} + + + update tea_exam_manage + set school_id = #{schoolId,jdbcType=VARCHAR}, + user_id = #{userId,jdbcType=VARCHAR}, + exam_name = #{examName,jdbcType=VARCHAR}, + start_time = #{startTime,jdbcType=TIMESTAMP}, + end_time = #{endTime,jdbcType=TIMESTAMP}, + logo_address = #{logoAddress,jdbcType=VARCHAR}, + exam_Description = #{examDescription,jdbcType=VARCHAR}, + Objective_weight = #{objectiveWeight,jdbcType=DECIMAL}, + case_weight = #{caseWeight,jdbcType=DECIMAL}, + single_score = #{singleScore,jdbcType=DECIMAL}, + many_score = #{manyScore,jdbcType=DECIMAL}, + judge_score = #{judgeScore,jdbcType=DECIMAL}, + case_score = #{caseScore,jdbcType=DECIMAL}, + single_idList = #{singleIdlist,jdbcType=LONGVARCHAR}, + many_idList = #{manyIdlist,jdbcType=LONGVARCHAR}, + judge_idList = #{judgeIdlist,jdbcType=LONGVARCHAR}, + case_idList = #{caseIdlist,jdbcType=LONGVARCHAR}, + single_answer = #{singleAnswer,jdbcType=LONGVARCHAR}, + many_answer = #{manyAnswer,jdbcType=LONGVARCHAR}, + judge_answer = #{judgeAnswer,jdbcType=LONGVARCHAR} + where exam_manage_id = #{examManageId,jdbcType=VARCHAR} + + + update tea_exam_manage + set school_id = #{schoolId,jdbcType=VARCHAR}, + user_id = #{userId,jdbcType=VARCHAR}, + exam_name = #{examName,jdbcType=VARCHAR}, + start_time = #{startTime,jdbcType=TIMESTAMP}, + end_time = #{endTime,jdbcType=TIMESTAMP}, + logo_address = #{logoAddress,jdbcType=VARCHAR}, + exam_Description = #{examDescription,jdbcType=VARCHAR}, + Objective_weight = #{objectiveWeight,jdbcType=DECIMAL}, + case_weight = #{caseWeight,jdbcType=DECIMAL}, + single_score = #{singleScore,jdbcType=DECIMAL}, + many_score = #{manyScore,jdbcType=DECIMAL}, + judge_score = #{judgeScore,jdbcType=DECIMAL}, + case_score = #{caseScore,jdbcType=DECIMAL} + where exam_manage_id = #{examManageId,jdbcType=VARCHAR} + + + + + + + + + + - \ No newline at end of file