|
|
@@ -483,7 +483,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public CommonResult queryPageStudents(String userId, int currentPage, int pageCount, Integer collegeId, Integer majorId, Integer classstrId, String trafficMethod, String name, String fillStatus, Integer isRegistered,Integer isPay) {
|
|
|
+ public CommonResult queryPageStudents(String userId, int currentPage, int pageCount, Integer collegeId, Integer majorId, Integer classstrId, String trafficMethod, String name, String fillStatus, Integer isRegistered,Integer isPay,Integer isCheck,String school,String batchValue,Integer carNumber) {
|
|
|
IPage<StudentPageVo> pages = new Page<>();
|
|
|
PageUtils<StudentPageVo> result = new PageUtils<>(pages);
|
|
|
WelcomeAccount wa = welcomeAccountService.getManageById(userId);
|
|
|
@@ -501,7 +501,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
collegeIds.add(String.valueOf(collegeId));
|
|
|
}
|
|
|
}
|
|
|
- result = welcomeStudentService.queryStudentPageList(currentPage, pageCount, collegeIds, majorId, classstrId, trafficMethod, name, fillStatus, isRegistered,isPay);
|
|
|
+ result = welcomeStudentService.queryStudentPageList(currentPage, pageCount, collegeIds, majorId, classstrId, trafficMethod, name, fillStatus, isRegistered,isPay,isCheck,school,batchValue,carNumber);
|
|
|
return CommonResult.ok(result);
|
|
|
}
|
|
|
|
|
|
@@ -618,7 +618,11 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
result.setPayAmount(ws.getPayAmount());
|
|
|
result.setIsDrive(ws.getIsDrive());
|
|
|
// 当前学生表里的车牌号为空
|
|
|
- result.setCarNumber(ws.getCarNumber());
|
|
|
+ WelcomeVisitorVO byCurUser = welcomeVisitorService.getByCurUser(ws.getCardId());
|
|
|
+ if (ObjectUtils.isNotEmpty(byCurUser)) {
|
|
|
+ result.setCarNumber(byCurUser.getCarNumber());
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
return CommonResult.ok(result);
|
|
|
}
|
|
|
@@ -1524,7 +1528,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void welcomeStudentExport(String userId, HttpServletResponse response, Integer collegeId, Integer majorId, Integer classstrId, String trafficMethod, String name, String fillStatus,Integer isRegistered,Integer isPay) {
|
|
|
+ public void welcomeStudentExport(String userId, HttpServletResponse response, Integer collegeId, Integer majorId, Integer classstrId, String trafficMethod, String name, String fillStatus,Integer isRegistered,Integer isPay,Integer isCheck,String school,String batchValue,Integer carNumber) {
|
|
|
Workbook workbook = new XSSFWorkbook();
|
|
|
Sheet sheet = workbook.createSheet("学生信息");
|
|
|
WelcomeAccount wa = welcomeAccountService.getManageById(userId);
|
|
|
@@ -1543,7 +1547,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- List<StudentPageVo> result = welcomeStudentService.queryStudentList(collegeIds, majorId, classstrId, trafficMethod, name, fillStatus,isRegistered,isPay);
|
|
|
+ List<StudentPageVo> result = welcomeStudentService.queryStudentList(collegeIds, majorId, classstrId, trafficMethod, name, fillStatus,isRegistered,isPay,isCheck,school,batchValue,carNumber);
|
|
|
//导出
|
|
|
|
|
|
Row headerRow = sheet.createRow(0);
|
|
|
@@ -1557,11 +1561,16 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
headerRow.createCell(7).setCellValue("班级");
|
|
|
headerRow.createCell(8).setCellValue("交通方式");
|
|
|
headerRow.createCell(9).setCellValue("到站地点");
|
|
|
- headerRow.createCell(10).setCellValue("陪同人数");
|
|
|
- headerRow.createCell(11).setCellValue("填报状态");
|
|
|
- headerRow.createCell(12).setCellValue("应缴金额");
|
|
|
- headerRow.createCell(13).setCellValue("实付金额");
|
|
|
- headerRow.createCell(14).setCellValue("宿舍信息");
|
|
|
+ headerRow.createCell(10).setCellValue("车牌号");
|
|
|
+ headerRow.createCell(11).setCellValue("陪同人数");
|
|
|
+ headerRow.createCell(12).setCellValue("填报状态");
|
|
|
+ headerRow.createCell(13).setCellValue("应缴金额");
|
|
|
+ headerRow.createCell(14).setCellValue("实付金额");
|
|
|
+ headerRow.createCell(15).setCellValue("宿舍信息");
|
|
|
+ headerRow.createCell(16).setCellValue("学生手机号");
|
|
|
+ headerRow.createCell(17).setCellValue("家长名称");
|
|
|
+ headerRow.createCell(18).setCellValue("家长手机号");
|
|
|
+
|
|
|
for (int i = 0; i < result.size(); i++) {
|
|
|
StudentPageVo studentData = result.get(i);
|
|
|
Row dataRow = sheet.createRow(i + 1);
|
|
|
@@ -1575,27 +1584,31 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
dataRow.createCell(7).setCellValue(studentData.getClassstr());
|
|
|
dataRow.createCell(8).setCellValue(studentData.getTrafficMethod());
|
|
|
dataRow.createCell(9).setCellValue(studentData.getArrive());
|
|
|
- dataRow.createCell(10).setCellValue(studentData.getAccompanyNum());
|
|
|
- dataRow.createCell(11).setCellValue(studentData.getFillStatus());
|
|
|
- dataRow.createCell(12).setCellValue(String.valueOf(studentData.getAmountPayable()));
|
|
|
- dataRow.createCell(13).setCellValue(String.valueOf(studentData.getPayAmount()));
|
|
|
- dataRow.createCell(14).setCellValue(studentData.getDormitory());
|
|
|
+ dataRow.createCell(10).setCellValue(studentData.getCarNumber());
|
|
|
+ dataRow.createCell(11).setCellValue(studentData.getAccompanyNum());
|
|
|
+ dataRow.createCell(12).setCellValue(studentData.getFillStatus());
|
|
|
+ dataRow.createCell(13).setCellValue(String.valueOf(studentData.getAmountPayable()));
|
|
|
+ dataRow.createCell(14).setCellValue(String.valueOf(studentData.getPayAmount()));
|
|
|
+ dataRow.createCell(15).setCellValue(studentData.getDormitory());
|
|
|
+ dataRow.createCell(16).setCellValue(studentData.getPhone());
|
|
|
+ dataRow.createCell(17).setCellValue(studentData.getFamilyName());
|
|
|
+ dataRow.createCell(18).setCellValue(studentData.getFamilyPhone());
|
|
|
}
|
|
|
// 将工作簿写入文件
|
|
|
ExcelUtils.excelDownload(workbook, "学生信息.xlsx", response);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public CommonResult studentOverview() {
|
|
|
-
|
|
|
- int enrollmentTotal=welcomeStudentService.studentTotalCount();
|
|
|
+ public CommonResult studentOverview(Integer collegeId) {
|
|
|
+// 获取学生总数
|
|
|
+ int enrollmentTotal=welcomeStudentService.studentTotalCount(collegeId);
|
|
|
// 录取总数
|
|
|
// LambdaQueryWrapper<WelcomeStudent> queryWrapper=new LambdaQueryWrapper<>();
|
|
|
// queryWrapper.eq(WelcomeStudent::getIdenType,1);
|
|
|
// int enrollmentTotal = 8085;//welcomeStudentService.count(queryWrapper);
|
|
|
|
|
|
// 缴费人数
|
|
|
- int payCount = welcomeStudentService.payCount();
|
|
|
+ int payCount = welcomeStudentService.payCount(collegeId);
|
|
|
// 缴费率
|
|
|
Double rate = ((double) payCount / enrollmentTotal) * 100;
|
|
|
String payRate = String.format("%.2f", rate);
|
|
|
@@ -1604,7 +1617,8 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
// 已入住寝室数
|
|
|
LambdaQueryWrapper<WelcomeBed> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.eq(WelcomeBed::getIsCheck, 1)
|
|
|
- .eq(WelcomeBed::getRetentionState, 1);
|
|
|
+ .eq(WelcomeBed::getRetentionState, 1)
|
|
|
+ .eq(ObjectUtils.isNotEmpty(collegeId),WelcomeBed::getCollegeId,collegeId);
|
|
|
int checkInBedTotal = welcomeBedService.count(wrapper);
|
|
|
|
|
|
// 报到率
|
|
|
@@ -1647,7 +1661,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
@Override
|
|
|
public CommonResult studentRegister(Integer collegeId) {
|
|
|
// 学生总数
|
|
|
- int enrollmentTotal=welcomeStudentService.studentTotalCount();
|
|
|
+ int enrollmentTotal=welcomeStudentService.studentTotalCount(collegeId);
|
|
|
// 获取总数
|
|
|
Integer count = welcomeStudentService.totalCount(collegeId);
|
|
|
// 获取比例
|
|
|
@@ -1670,8 +1684,8 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public CommonResult studentTraffic() {
|
|
|
- List<StudentTrafficVo> vos = welcomeStudentService.studentTraffic();
|
|
|
+ public CommonResult studentTraffic(Integer collegeId) {
|
|
|
+ List<StudentTrafficVo> vos = welcomeStudentService.studentTraffic(collegeId);
|
|
|
return CommonResult.ok(vos);
|
|
|
}
|
|
|
|
|
|
@@ -1934,12 +1948,12 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public CommonResult levelRegister() {
|
|
|
-// 学生总数
|
|
|
- int enrollmentTotal=welcomeStudentService.studentTotalCount();
|
|
|
+ public CommonResult levelRegister(Integer collegeId) {
|
|
|
+// 获取学生总数
|
|
|
+ int enrollmentTotal=welcomeStudentService.studentTotalCount(collegeId);
|
|
|
|
|
|
- // 获取总数
|
|
|
- Integer count = welcomeStudentService.totalCount(null);
|
|
|
+ // 获取报到总数
|
|
|
+ Integer count = welcomeStudentService.totalCount(collegeId);
|
|
|
// 获取比例
|
|
|
Double result = ((double) count / enrollmentTotal) * 100;
|
|
|
String rate = String.format("%.2f", result);
|
|
|
@@ -1953,14 +1967,14 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
String zsb="专升本";
|
|
|
String zk="专科";
|
|
|
|
|
|
-// 获取本科人数
|
|
|
- Integer bkCount = welcomeStudentService.getLevelTotalCount(bk);
|
|
|
-// 获取专升本人数
|
|
|
- Integer zsbCount = welcomeStudentService.getLevelTotalCount(zsb);
|
|
|
-// 获取专科人数
|
|
|
- Integer zkCount = welcomeStudentService.getLevelTotalCount(zk);
|
|
|
+// 获取总本科人数
|
|
|
+ Integer bkCount = welcomeStudentService.getLevelTotalCount(bk,collegeId);
|
|
|
+// 获取总专升本人数
|
|
|
+ Integer zsbCount = welcomeStudentService.getLevelTotalCount(zsb,collegeId);
|
|
|
+// 获取总专科人数
|
|
|
+ Integer zkCount = welcomeStudentService.getLevelTotalCount(zk,collegeId);
|
|
|
|
|
|
- List<StudentRegisterVo> vos = welcomeStudentService.levelRegister();
|
|
|
+ List<StudentRegisterVo> vos = welcomeStudentService.levelRegister(collegeId);
|
|
|
HashMap<String, StudentRegisterVo> map = new HashMap<>();
|
|
|
for (StudentRegisterVo studentRegisterVo : vos) {
|
|
|
Integer count1 = studentRegisterVo.getCount();
|