|
@@ -28,6 +28,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Isolation;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
|
|
+import org.springframework.transaction.interceptor.TransactionalProxy;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import java.util.*;
|
|
@@ -177,7 +179,7 @@ public class StudentAttendanceServiceImpl extends BaseServiceImpl<Long, StudentA
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
|
|
|
if (!courseSchedule.getType().equals(CourseSchedule.CourseScheduleType.VIP)) {
|
|
|
- result.put("status",1);
|
|
|
+ result.put("status",0);
|
|
|
return result;
|
|
|
}
|
|
|
|
|
@@ -211,6 +213,7 @@ public class StudentAttendanceServiceImpl extends BaseServiceImpl<Long, StudentA
|
|
|
if(StringUtils.isEmpty(studentAttendanceInfos.getRemark())&&!isInScore){
|
|
|
//当前为异常签到,请填写原因!
|
|
|
result.put("status",2);
|
|
|
+ TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
|
return result;
|
|
|
}
|
|
|
|