Browse Source

Merge branch 'master' of http://git.dayaedu.com/yonge/edu-saas

yonge 5 năm trước cách đây
mục cha
commit
cb5fdfa1c3

+ 1 - 1
edu-user/edu-user-server/src/main/java/com/keao/edu/user/controller/StudentExamResultController.java

@@ -59,7 +59,7 @@ public class StudentExamResultController extends BaseController {
     }
 
     @ApiOperation("考试结果统计信息")
-    @PostMapping(value = "/getStudentExamResultStatisticsInfo")
+    @GetMapping(value = "/getStudentExamResultStatisticsInfo")
     public HttpResponseResult<StudentExamResultStatisticsDto> getStudentExamResultStatisticsInfo(Integer examId){
         SysUser sysUser = sysUserFeignService.queryUserInfo();
         return succeed(studentExamResultService.getStudentExamResultStatisticsInfo(sysUser.getId(), examId));

+ 3 - 0
edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/impl/StudentExamResultServiceImpl.java

@@ -100,6 +100,9 @@ public class StudentExamResultServiceImpl extends BaseServiceImpl<Long, StudentE
 
 	@Override
 	public StudentExamResultStatisticsDto getStudentExamResultStatisticsInfo(Integer organId, Integer examId) {
+		if(Objects.isNull(examId)){
+			throw new BizException("请指定考级项目");
+		}
 		List<Integer> childOrganIds = organizationService.getChildOrganIds(organId, true);
 		StudentExamResultStatisticsDto studentExamResultStatisticsInfo = studentExamResultDao.getStudentExamResultStatisticsInfo(childOrganIds, examId);
 		return studentExamResultStatisticsInfo;