|
|
@ -41,7 +41,6 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.function.Function;
|
|
|
|
import java.util.function.Function;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
@ -78,9 +77,10 @@ public class TeaGradeManageController {
|
|
|
|
@ApiOperation("考试模式--页面展示(学生端实战考核复用)")
|
|
|
|
@ApiOperation("考试模式--页面展示(学生端实战考核复用)")
|
|
|
|
public ResultEntity<PageInfo<TeaExamManageCountDto>> getExamInfo(@RequestParam Integer index,
|
|
|
|
public ResultEntity<PageInfo<TeaExamManageCountDto>> getExamInfo(@RequestParam Integer index,
|
|
|
|
@RequestParam Integer size,
|
|
|
|
@RequestParam Integer size,
|
|
|
|
@ApiParam("ManyAnswer为考试时间,JudgeAnswer为发布人") @RequestParam String schoolId) {
|
|
|
|
@ApiParam("ManyAnswer为考试时间,JudgeAnswer为发布人") @RequestParam String schoolId,
|
|
|
|
|
|
|
|
@ApiParam("系统名称") @RequestParam String systemOwner) {
|
|
|
|
|
|
|
|
|
|
|
|
List<TeaExamManage> teaExamManages = teaExamManageMapper.selectBySchoolId(schoolId);
|
|
|
|
List<TeaExamManage> teaExamManages = teaExamManageMapper.selectBySchoolIdAndSystemOwner(schoolId, systemOwner);
|
|
|
|
if (teaExamManages.isEmpty()) {
|
|
|
|
if (teaExamManages.isEmpty()) {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -457,10 +457,11 @@ public class TeaGradeManageController {
|
|
|
|
@ApiOperation("练习模式--实训报告展示")
|
|
|
|
@ApiOperation("练习模式--实训报告展示")
|
|
|
|
public ResultEntity<PageInfo<TrainingReportDto>> getReportBySchoolID(@RequestParam Integer index,
|
|
|
|
public ResultEntity<PageInfo<TrainingReportDto>> getReportBySchoolID(@RequestParam Integer index,
|
|
|
|
@RequestParam Integer size,
|
|
|
|
@RequestParam Integer size,
|
|
|
|
@RequestParam String schoolId) {
|
|
|
|
@RequestParam String schoolId,
|
|
|
|
|
|
|
|
@RequestParam String systemOwner) {
|
|
|
|
PageHelper.startPage(index, size);
|
|
|
|
PageHelper.startPage(index, size);
|
|
|
|
TrainingReportExample reportExample = new TrainingReportExample();
|
|
|
|
TrainingReportExample reportExample = new TrainingReportExample();
|
|
|
|
reportExample.createCriteria().andSchoolIdEqualTo(schoolId);
|
|
|
|
reportExample.createCriteria().andSchoolIdEqualTo(schoolId).andSystemOwnerEqualTo(systemOwner);
|
|
|
|
List<TrainingReportDto> list = new AstList();
|
|
|
|
List<TrainingReportDto> list = new AstList();
|
|
|
|
List<TrainingReport> trainingReports = reportMapper.selectByExampleWithBLOBs(reportExample);
|
|
|
|
List<TrainingReport> trainingReports = reportMapper.selectByExampleWithBLOBs(reportExample);
|
|
|
|
if (!trainingReports.isEmpty()) {
|
|
|
|
if (!trainingReports.isEmpty()) {
|
|
|
@ -553,7 +554,7 @@ public class TeaGradeManageController {
|
|
|
|
@ApiOperation("练习模式--成绩详情页面设置权重")
|
|
|
|
@ApiOperation("练习模式--成绩详情页面设置权重")
|
|
|
|
public void updateWeightByModule(@ApiParam("所有框必须传") @RequestBody SysWeight sysWeight) {
|
|
|
|
public void updateWeightByModule(@ApiParam("所有框必须传") @RequestBody SysWeight sysWeight) {
|
|
|
|
SysWeightExample sysWeightExample = new SysWeightExample();
|
|
|
|
SysWeightExample sysWeightExample = new SysWeightExample();
|
|
|
|
sysWeightExample.createCriteria().andCourseIdEqualTo(sysWeight.getCourseId());
|
|
|
|
sysWeightExample.createCriteria().andCourseIdEqualTo(sysWeight.getCourseId()).andSystemOwnerEqualTo(sysWeight.getSystemOwner());
|
|
|
|
List<SysWeight> sysWeights = sysWeightMapper.selectByExample(sysWeightExample);
|
|
|
|
List<SysWeight> sysWeights = sysWeightMapper.selectByExample(sysWeightExample);
|
|
|
|
if (!sysWeights.isEmpty()) {//有 update
|
|
|
|
if (!sysWeights.isEmpty()) {//有 update
|
|
|
|
sysWeightMapper.updateByPrimaryKey(sysWeight);
|
|
|
|
sysWeightMapper.updateByPrimaryKey(sysWeight);
|
|
|
@ -586,9 +587,10 @@ public class TeaGradeManageController {
|
|
|
|
@PostMapping("/getModuleByCourseId")
|
|
|
|
@PostMapping("/getModuleByCourseId")
|
|
|
|
@ApiOperation("练习模式--权重回显")
|
|
|
|
@ApiOperation("练习模式--权重回显")
|
|
|
|
public ResultEntity<SysWeight> getModuleByCourseId(@RequestParam String courseId,
|
|
|
|
public ResultEntity<SysWeight> getModuleByCourseId(@RequestParam String courseId,
|
|
|
|
@RequestParam String schoolId) {
|
|
|
|
@RequestParam String schoolId,
|
|
|
|
|
|
|
|
@RequestParam String systemOwner) {
|
|
|
|
SysWeightExample sysWeightExample = new SysWeightExample();
|
|
|
|
SysWeightExample sysWeightExample = new SysWeightExample();
|
|
|
|
sysWeightExample.createCriteria().andSchoolIdEqualTo(schoolId).andCourseIdEqualTo(courseId);
|
|
|
|
sysWeightExample.createCriteria().andSchoolIdEqualTo(schoolId).andCourseIdEqualTo(courseId).andSystemOwnerEqualTo(systemOwner);
|
|
|
|
List<SysWeight> sysWeights = sysWeightMapper.selectByExample(sysWeightExample);
|
|
|
|
List<SysWeight> sysWeights = sysWeightMapper.selectByExample(sysWeightExample);
|
|
|
|
if (sysWeights.isEmpty()) {
|
|
|
|
if (sysWeights.isEmpty()) {
|
|
|
|
//todo 是否需要设置默认权重
|
|
|
|
//todo 是否需要设置默认权重
|
|
|
@ -605,8 +607,9 @@ public class TeaGradeManageController {
|
|
|
|
@RequestParam Integer size,
|
|
|
|
@RequestParam Integer size,
|
|
|
|
@RequestParam String schoolId,
|
|
|
|
@RequestParam String schoolId,
|
|
|
|
@RequestParam(required = false) String classId,
|
|
|
|
@RequestParam(required = false) String classId,
|
|
|
|
@ApiParam("学号/姓名搜索框") @RequestParam(required = false) String keyWord) {
|
|
|
|
@ApiParam("学号/姓名搜索框") @RequestParam(required = false) String keyWord,
|
|
|
|
return new ResultEntity<>(iTeaGradeManageService.getTheoryInfo(index, size, schoolId, classId, keyWord));
|
|
|
|
@RequestParam String systemOwner) {
|
|
|
|
|
|
|
|
return new ResultEntity<>(iTeaGradeManageService.getTheoryInfo(index, size, schoolId, classId, keyWord,systemOwner));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|