|
|
@@ -10,6 +10,7 @@ import com.ruoyi.common.core.domain.AjaxResult2;
|
|
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
import com.ruoyi.common.enums.ExamType;
|
|
|
+import com.ruoyi.common.utils.NumberUtils;
|
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
|
import com.ruoyi.dz.domain.DzControl;
|
|
|
import com.ruoyi.dz.domain.DzSubject;
|
|
|
@@ -94,19 +95,23 @@ public class LearnTeacherController extends BaseController {
|
|
|
@ApiOperation("知识点列表")
|
|
|
public AjaxResult knowledges(@ApiParam("类型 ExactIntelligent/FullIntelligent/ExactHand/FullHand") @RequestParam String buildType,
|
|
|
@ApiParam("科目ID") @RequestParam(required = false) Long subjectId,
|
|
|
- @ApiParam("专业计划ID") @RequestParam(required = false) Long majorPlanId)
|
|
|
+ @ApiParam("专业计划ID") @RequestParam(required = false) Long majorPlanId,
|
|
|
+ @ApiParam("考生类型") @RequestParam(required = false) String examType)
|
|
|
{
|
|
|
Set<Long> knowledgeIdSet = null;
|
|
|
if("ExactHand".equals(buildType)) {
|
|
|
- knowledgeIdSet = learnTeacherService.getKnowledgeIdSet(majorPlanId);
|
|
|
+ knowledgeIdSet = learnTeacherService.getKnowledgeIdSet(majorPlanId, examType);
|
|
|
}
|
|
|
- return AjaxResult.success(learnTeacherService.getKnowledgeTree(null, subjectId, knowledgeIdSet, null));
|
|
|
+ return AjaxResult.success(learnTeacherService.getKnowledgeTree(examType, subjectId, knowledgeIdSet, null));
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "classStatistic")
|
|
|
@ApiOperation("班级生成统计")
|
|
|
public AjaxResult classStatistic(TestPaperVO.TestPaperBuildReq req)
|
|
|
{
|
|
|
+ if (NumberUtils.isPositive(req.getMajorPlanId())) {
|
|
|
+ req.setMajorGroup(null);
|
|
|
+ }
|
|
|
return AjaxResult.success(learnTeacherService.getClassesBuildStats(req, getTeacherId()));
|
|
|
}
|
|
|
|