|
|
@@ -74,6 +74,9 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
private WelcomeBedService welcomeBedService;
|
|
|
|
|
|
@Autowired
|
|
|
+ private WelcomeSettingService welcomeSettingService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
private WelcomeArriveSettingService welcomeArriveSettingService;
|
|
|
|
|
|
@Autowired
|
|
|
@@ -1373,8 +1376,12 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
|
|
|
@Override
|
|
|
public CommonResult studentOverview() {
|
|
|
+
|
|
|
+ QueryWrapper<WelcomeStudent> queryWrapper = new QueryWrapper<>();
|
|
|
+ queryWrapper.eq("iden_type",1);
|
|
|
+ queryWrapper.eq("fill_status","已填报");
|
|
|
// 报到总数
|
|
|
- int studentTotal = welcomeStudentService.count(new QueryWrapper<>());
|
|
|
+ int studentTotal = welcomeStudentService.count(queryWrapper);
|
|
|
// 寝室总数
|
|
|
int dormitoryTotal = welcomeDormitoryService.count(new QueryWrapper<>());
|
|
|
|
|
|
@@ -1388,7 +1395,8 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
LocalDateTime end = start.plusDays(1);
|
|
|
DateTimeFormatter dateTimeFormatter1 = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
|
Integer visitorTotal=welcomeVisitorService.countTotal(start,end);
|
|
|
- Integer carTotal = welcomeVisitorService.carTotal();
|
|
|
+ List<WelcomeSetting> wss = welcomeSettingService.list(null);
|
|
|
+ Integer carTotal =wss !=null && wss.size() > 0 ? wss.get(0).getCarNum() : 0;
|
|
|
|
|
|
StudentOverviewVo vo = new StudentOverviewVo();
|
|
|
vo.setEnrollmentTotal(6532);
|