评测查询列表

develop
hhb@hotmail.com 3 months ago
parent 63de395694
commit 8b3ec87fb4

@ -3,6 +3,7 @@ package cn.teammodel.controller.admin.controller;
import cn.teammodel.common.R;
import cn.teammodel.controller.admin.service.ExamService;
import cn.teammodel.model.dto.admin.art.ArtFindDto;
import cn.teammodel.model.dto.admin.exam.AnalysisDto;
import cn.teammodel.model.dto.admin.exam.BlobSasDto;
import cn.teammodel.model.dto.admin.exam.OverViewDto;
import cn.teammodel.model.vo.admin.ArtElementsVo;
@ -31,4 +32,11 @@ public class ExamController {
Map<String, Object> res = examService.getAnalysis(overViewDto,request);
return R.success(res);
}
@PostMapping("getExamList")
@ApiOperation("获取该学校该学段全年评测数据")
public R<Map<String, Object>> getExamList(@Valid @RequestBody AnalysisDto analysisDto, HttpServletRequest request) {
Map<String, Object> res = examService.getExamList(analysisDto,request);
return R.success(res);
}
}

@ -1,5 +1,6 @@
package cn.teammodel.controller.admin.service;
import cn.teammodel.model.dto.admin.exam.AnalysisDto;
import cn.teammodel.model.dto.admin.exam.BlobSasDto;
import cn.teammodel.model.dto.admin.exam.OverViewDto;
@ -8,4 +9,5 @@ import java.util.Map;
public interface ExamService {
Map<String,Object> getAnalysis(OverViewDto overViewDto, HttpServletRequest request);
Map<String,Object> getExamList(AnalysisDto analysisDto, HttpServletRequest request);
}

@ -3,6 +3,7 @@ package cn.teammodel.controller.admin.service.impl;
import cn.teammodel.common.ErrorCode;
import cn.teammodel.config.exception.ServiceException;
import cn.teammodel.controller.admin.service.ExamService;
import cn.teammodel.model.dto.admin.exam.AnalysisDto;
import cn.teammodel.model.dto.admin.exam.OverViewDto;
import cn.teammodel.model.entity.school.School;
import cn.teammodel.repository.SchoolRepository;
@ -47,4 +48,17 @@ public class ExamServiceImpl implements ExamService {
}
return overView;
}
@Override
public Map<String, Object> getExamList(AnalysisDto analysisDto, HttpServletRequest request) {
Map<String, Object> overView;
String url = env.getProperty("ies.server-url-exam-analysis-list");
try {
overView = GroupUtil.getGroupId(analysisDto,new GroupUtil(env), request,url);
}catch (Exception e) {
throw new ServiceException(ErrorCode.SYSTEM_ERROR.getCode(), "数据转换错误");
}
return overView;
}
}

@ -0,0 +1,20 @@
package cn.teammodel.model.dto.admin.exam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class AnalysisDto {
@ApiModelProperty("学校编码")
private String code;
@ApiModelProperty("当前学校指定学段")
private String period;
@ApiModelProperty("当前评测活动所属范围,目前制定查询属于学校的数据,直接传 school")
private String owner;
@ApiModelProperty("当前年份的数据,支持查询其他年份的数据,当前接口就传当前年份,如果不传 则查询所有的数据 根据情况传参")
private int year;
@ApiModelProperty("指定查询的条数,为了后续滚动翻页")
private int count;
@ApiModelProperty("翻页参数,后续滚动翻页回传给后端,没有就不管")
private String token;
}

@ -76,3 +76,4 @@ ies:
server-url-exam-rate: /common/exam/get-exam-point
server-url-art-analysis: /analysis/art/statistics
server-url-blob-sas-rcwld: /blob/sas-rcwld
server-url-exam-analysis-list: /common/exam/find-by-analysis
Loading…
Cancel
Save