|
@@ -1836,10 +1836,6 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
// wrapper.between(WelcomeBed::getCreateTime, nstartTime, nendTime);
|
|
// wrapper.between(WelcomeBed::getCreateTime, nstartTime, nendTime);
|
|
|
// int checkInBedTotal = welcomeBedService.count(wrapper);
|
|
// int checkInBedTotal = welcomeBedService.count(wrapper);
|
|
|
|
|
|
|
|
- //报到率
|
|
|
|
|
- //BigDecimal total = new BigDecimal(enrollmentTotal);
|
|
|
|
|
- //BigDecimal bedTotal = new BigDecimal(checkInBedTotal);
|
|
|
|
|
- //BigDecimal bigDecimal = bedTotal.divide(total).setScale(4, BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal(100));
|
|
|
|
|
// Double result = enrollmentTotal <= 0 ? 0 : ((double) checkInBedTotal / enrollmentTotal) * 100;
|
|
// Double result = enrollmentTotal <= 0 ? 0 : ((double) checkInBedTotal / enrollmentTotal) * 100;
|
|
|
// String registrationRate = String.format("%.2f", result);
|
|
// String registrationRate = String.format("%.2f", result);
|
|
|
|
|
|
|
@@ -1928,6 +1924,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
vo.setName("报到总数");
|
|
vo.setName("报到总数");
|
|
|
vo.setCount(count);
|
|
vo.setCount(count);
|
|
|
vo.setRate(rate);
|
|
vo.setRate(rate);
|
|
|
|
|
+ vo.setTotalCount(enrollmentTotal);
|
|
|
if (ObjectUtils.isNotEmpty(collegeId)) {
|
|
if (ObjectUtils.isNotEmpty(collegeId)) {
|
|
|
List<StudentRegisterVo> vos = welcomeStudentService.studentMajorRegister(collegeId, nstartTime, nendTime);
|
|
List<StudentRegisterVo> vos = welcomeStudentService.studentMajorRegister(collegeId, nstartTime, nendTime);
|
|
|
vos.add(vo);
|
|
vos.add(vo);
|