|
@@ -14,6 +14,7 @@ import com.xjrsoft.common.enums.StudyStatusEnum;
|
|
import com.xjrsoft.common.model.result.RT;
|
|
import com.xjrsoft.common.model.result.RT;
|
|
import com.xjrsoft.common.page.ConventPage;
|
|
import com.xjrsoft.common.page.ConventPage;
|
|
import com.xjrsoft.common.page.PageOutput;
|
|
import com.xjrsoft.common.page.PageOutput;
|
|
|
|
+import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
import com.xjrsoft.module.attendance.dto.AttendanceStatisticDto;
|
|
import com.xjrsoft.module.attendance.dto.AttendanceStatisticDto;
|
|
import com.xjrsoft.module.attendance.dto.StudentDetailsDto;
|
|
import com.xjrsoft.module.attendance.dto.StudentDetailsDto;
|
|
import com.xjrsoft.module.attendance.service.IAttendanceRuleCategoryService;
|
|
import com.xjrsoft.module.attendance.service.IAttendanceRuleCategoryService;
|
|
@@ -25,6 +26,7 @@ import com.xjrsoft.module.holiday.entity.HolidayDate;
|
|
import com.xjrsoft.module.holiday.service.IHolidayDateService;
|
|
import com.xjrsoft.module.holiday.service.IHolidayDateService;
|
|
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.outint.entity.CarOutInRecord;
|
|
import com.xjrsoft.module.outint.entity.StudentOutInRecord;
|
|
import com.xjrsoft.module.outint.entity.StudentOutInRecord;
|
|
import com.xjrsoft.module.outint.service.IStudentOutInRecordService;
|
|
import com.xjrsoft.module.outint.service.IStudentOutInRecordService;
|
|
import com.xjrsoft.module.outint.vo.StudentOutInRecordVo;
|
|
import com.xjrsoft.module.outint.vo.StudentOutInRecordVo;
|
|
@@ -248,9 +250,11 @@ public class StudentStatisticsController {
|
|
Map<Long, StudentLeave> leaveList = studentLeaveService.getLeaveList(startTime, endTime);
|
|
Map<Long, StudentLeave> leaveList = studentLeaveService.getLeaveList(startTime, endTime);
|
|
//查询进入记录
|
|
//查询进入记录
|
|
List<StudentOutInRecord> outInRecords = studentOutInRecordService.list(
|
|
List<StudentOutInRecord> outInRecords = studentOutInRecordService.list(
|
|
- new QueryWrapper<StudentOutInRecord>().lambda()
|
|
|
|
- .between(StudentOutInRecord::getRecordTime, startTime, endTime)
|
|
|
|
- .eq(StudentOutInRecord::getStatus, 1)
|
|
|
|
|
|
+ new MPJLambdaWrapper<StudentOutInRecord>()
|
|
|
|
+ .select(StudentOutInRecord.class, x -> VoToColumnUtil.fieldsToColumns(StudentOutInRecord.class).contains(x.getProperty()))
|
|
|
|
+ .eq(StudentOutInRecord::getStatus, OutInStatusEnum.enter.getCode())
|
|
|
|
+ .le(StudentOutInRecord::getRecordTime, endTime)
|
|
|
|
+ .eq("DATE_FORMAT(record_time, '%Y-%m-%d')", endTime.toLocalDate())
|
|
);
|
|
);
|
|
Map<Long, StudentOutInRecord> outInMap = new HashMap<>();
|
|
Map<Long, StudentOutInRecord> outInMap = new HashMap<>();
|
|
for (StudentOutInRecord inRecord : outInRecords) {
|
|
for (StudentOutInRecord inRecord : outInRecords) {
|