|
@@ -66,8 +66,8 @@ public class StudentAttendanceServiceImpl extends BaseServiceImpl<Long, StudentA
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public Map addStudentAttendances(StudentAttendanceDto studentAttendanceInfos) {
|
|
|
- List<StudentAttendance> studentAttendances=studentAttendanceInfos.getStudentAttendances();
|
|
|
+ public Map addStudentAttendances(List<StudentAttendance> studentAttendances) {
|
|
|
+// List<StudentAttendance> studentAttendances=studentAttendanceInfos.getStudentAttendances();
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if(Objects.isNull(sysUser)){
|
|
|
throw new BizException("请登录");
|
|
@@ -135,11 +135,12 @@ public class StudentAttendanceServiceImpl extends BaseServiceImpl<Long, StudentA
|
|
|
courseSchedule.setLeaveStudentNum(leaveStudentNum);
|
|
|
courseScheduleDao.update(courseSchedule);
|
|
|
|
|
|
- TeacherSignOutDto teacherSignOutDto=new TeacherSignOutDto();
|
|
|
- TeacherAttendance teacherAttendance = new TeacherAttendance(courseSchedule.getId(), 0);
|
|
|
- teacherAttendance.setSignInLongitudeLatitude(studentAttendanceInfos.getSignInLongitudeLatitude());
|
|
|
- teacherSignOutDto.setTeacherAttendanceInfo(teacherAttendance);
|
|
|
- return teacherAttendanceService.addTeacherAttendanceRecord(teacherSignOutDto);
|
|
|
+// TeacherSignOutDto teacherSignOutDto=new TeacherSignOutDto();
|
|
|
+// TeacherAttendance teacherAttendance = new TeacherAttendance(courseSchedule.getId(), 0);
|
|
|
+// teacherAttendance.setSignInLongitudeLatitude(studentAttendanceInfos.getSignInLongitudeLatitude());
|
|
|
+// teacherSignOutDto.setTeacherAttendanceInfo(teacherAttendance);
|
|
|
+// return teacherAttendanceService.addTeacherAttendanceRecord(teacherSignOutDto);
|
|
|
+ return null;
|
|
|
}
|
|
|
|
|
|
@Override
|