|
@@ -34,6 +34,7 @@ import com.xjrsoft.module.organization.dto.GetUserByParamDto;
|
|
|
import com.xjrsoft.module.organization.entity.User;
|
|
import com.xjrsoft.module.organization.entity.User;
|
|
|
import com.xjrsoft.module.organization.service.IUserService;
|
|
import com.xjrsoft.module.organization.service.IUserService;
|
|
|
import com.xjrsoft.module.student.dto.ChangeBandingStatusDto;
|
|
import com.xjrsoft.module.student.dto.ChangeBandingStatusDto;
|
|
|
|
|
+import com.xjrsoft.module.student.dto.StudentReportChangeClassBatchDto;
|
|
|
import com.xjrsoft.module.student.dto.StudentReportRecordPageDto;
|
|
import com.xjrsoft.module.student.dto.StudentReportRecordPageDto;
|
|
|
import com.xjrsoft.module.student.dto.StudentReportRecordStatisticsDto;
|
|
import com.xjrsoft.module.student.dto.StudentReportRecordStatisticsDto;
|
|
|
import com.xjrsoft.module.student.dto.StudentReportSignDto;
|
|
import com.xjrsoft.module.student.dto.StudentReportSignDto;
|
|
@@ -180,6 +181,15 @@ public class StudentTryReadingReportController {
|
|
|
return RT.ok(isSuccess);
|
|
return RT.ok(isSuccess);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @PostMapping("/change-class-batch")
|
|
|
|
|
+ @ApiOperation(value = "批量调整班级")
|
|
|
|
|
+ @SaCheckPermission("tryreadingreport:change-class")
|
|
|
|
|
+ @XjrLog(value = "调整班级")
|
|
|
|
|
+ public RT<Boolean> changeClassBatch(@Valid @RequestBody StudentReportChangeClassBatchDto dto){
|
|
|
|
|
+ boolean isSuccess = recordService.changeClassBatch(dto);
|
|
|
|
|
+ return RT.ok(isSuccess);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@PostMapping(value = "/update-stduyStatus")
|
|
@PostMapping(value = "/update-stduyStatus")
|
|
|
@ApiOperation(value="切换就读方式")
|
|
@ApiOperation(value="切换就读方式")
|
|
|
@SaCheckPermission("tryreadingreport:update-stduyStatus")
|
|
@SaCheckPermission("tryreadingreport:update-stduyStatus")
|
|
@@ -418,6 +428,42 @@ public class StudentTryReadingReportController {
|
|
|
divide = BigDecimal.valueOf(statisticsVo.getArrivedCount()).divide(BigDecimal.valueOf(statisticsVo.getAllCount()), 4, RoundingMode.HALF_UP);
|
|
divide = BigDecimal.valueOf(statisticsVo.getArrivedCount()).divide(BigDecimal.valueOf(statisticsVo.getAllCount()), 4, RoundingMode.HALF_UP);
|
|
|
}
|
|
}
|
|
|
statisticsVo.setReportRate(divide.doubleValue());
|
|
statisticsVo.setReportRate(divide.doubleValue());
|
|
|
|
|
+
|
|
|
|
|
+ //查询年级趋势
|
|
|
|
|
+ List<BaseGrade> gradeList = gradeService.list(
|
|
|
|
|
+ new QueryWrapper<BaseGrade>().lambda()
|
|
|
|
|
+ .eq(BaseGrade::getDeleteMark, DeleteMark.NODELETE.getCode())
|
|
|
|
|
+ .eq(BaseGrade::getEnabledMark, EnabledMark.ENABLED.getCode())
|
|
|
|
|
+ .eq(BaseGrade::getStatus, 1)
|
|
|
|
|
+ .orderByDesc(BaseGrade::getTitle)
|
|
|
|
|
+ );
|
|
|
|
|
+ List<ItemCountVo> gradeDataList = new ArrayList<>();
|
|
|
|
|
+ for (int i = 0; i < gradeList.size(); i ++){
|
|
|
|
|
+ BaseGrade baseGrade = gradeList.get(i);
|
|
|
|
|
+
|
|
|
|
|
+ List<EnrollmentPlan> enrollmentPlans = enrollmentPlanService.list(
|
|
|
|
|
+ new QueryWrapper<EnrollmentPlan>().lambda()
|
|
|
|
|
+ .eq(EnrollmentPlan::getEnrollType, dto.getEnrollType())
|
|
|
|
|
+ .eq(EnrollmentPlan::getGradeId, baseGrade.getId())
|
|
|
|
|
+ .eq(EnrollmentPlan::getDeleteMark, DeleteMark.NODELETE.getCode())
|
|
|
|
|
+ .eq(EnrollmentPlan::getEnabledMark, EnabledMark.ENABLED.getCode())
|
|
|
|
|
+ .orderByDesc(EnrollmentPlan::getId)
|
|
|
|
|
+ );
|
|
|
|
|
+ int gradeCount = 0;
|
|
|
|
|
+ for (EnrollmentPlan enrollmentPlan : enrollmentPlans) {
|
|
|
|
|
+ StudentTryReadingReportPageDto gradeRecordPageDto = new StudentTryReadingReportPageDto();
|
|
|
|
|
+ gradeRecordPageDto.setEnrollmentPlanId(enrollmentPlan.getId());
|
|
|
|
|
+ gradeRecordPageDto.setIsReport(1);
|
|
|
|
|
+ gradeCount += recordService.getTryReadingList(recordPageDto).size();
|
|
|
|
|
+ }
|
|
|
|
|
+ ItemCountVo itemCountVo = new ItemCountVo();
|
|
|
|
|
+ itemCountVo.setItem(baseGrade.getName());
|
|
|
|
|
+ itemCountVo.setCount(gradeCount);
|
|
|
|
|
+ gradeDataList.add(itemCountVo);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ statisticsVo.setGradeList(gradeDataList);
|
|
|
|
|
+
|
|
|
return RT.ok(statisticsVo);
|
|
return RT.ok(statisticsVo);
|
|
|
}
|
|
}
|
|
|
|
|
|