فهرست منبع

feat:教学点签到异常暂不需要填写原因

Joburgess 4 سال پیش
والد
کامیت
d9a4d066aa
1فایلهای تغییر یافته به همراه8 افزوده شده و 7 حذف شده
  1. 8 7
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentAttendanceServiceImpl.java

+ 8 - 7
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentAttendanceServiceImpl.java

@@ -210,12 +210,12 @@ public class StudentAttendanceServiceImpl extends BaseServiceImpl<Long, StudentA
             }
         }
 
-        if(StringUtils.isEmpty(studentAttendanceInfos.getRemark())&&!isInScore){
-            //当前为异常签到,请填写原因!
-            result.put("status",2);
-            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
-            return result;
-        }
+//        if(StringUtils.isEmpty(studentAttendanceInfos.getRemark())&&!isInScore){
+//            //当前为异常签到,请填写原因!
+//            result.put("status",2);
+//            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
+//            return result;
+//        }
 
         TeacherAttendance teacherAttendance = teacherAttendanceDao.findByTeacherAttendanceInfo(sysUser.getId().longValue(), courseSchedule.getId());
 
@@ -232,7 +232,8 @@ public class StudentAttendanceServiceImpl extends BaseServiceImpl<Long, StudentA
         teacherAttendance.setSignOutTime(courseSchedule.getEndClassTime());
         teacherAttendance.setSignOutStatus(isInScore?YesOrNoEnum.YES:YesOrNoEnum.NO);
         teacherAttendance.setCurrentClassTimes(classTimes + 1);
-        teacherAttendance.setRemark(studentAttendanceInfos.getRemark());
+//        teacherAttendance.setRemark(studentAttendanceInfos.getRemark());
+        teacherAttendance.setRemark(teacherAttendanceMemo);
         if (Objects.nonNull(teacherAttendance.getId())) {
             teacherAttendanceDao.update(teacherAttendance);
         } else {