Ver Fonte

服务指标锁等待超时

zouxuan há 3 anos atrás
pai
commit
00cb99bab0

+ 4 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentExtracurricularExercisesSituationServiceImpl.java

@@ -607,12 +607,14 @@ public class StudentExtracurricularExercisesSituationServiceImpl extends BaseSer
 	@Transactional(rollbackFor = Exception.class)
 	public void deleteByMonday(String monday,List<Integer> studentIds) {
 		this.delSituations(studentExtracurricularExercisesSituationDao.selectByMonday(monday, studentIds));
+		studentExtracurricularExercisesSituationDao.deleteByMonday(monday,studentIds);
 	}
 
 	@Override
 	@Transactional(rollbackFor = Exception.class)
 	public void deleteByStudent(Integer studentId, String monday) {
 		this.delSituations(studentExtracurricularExercisesSituationDao.selectByStudent(studentId, monday));
+		studentExtracurricularExercisesSituationDao.deleteByStudent(studentId,monday);
 	}
 
 	@Transactional(rollbackFor = Exception.class)
@@ -620,8 +622,8 @@ public class StudentExtracurricularExercisesSituationServiceImpl extends BaseSer
 		if (CollectionUtils.isEmpty(situations)){
 			return;
 		}
-		List<Long> collect1 = situations.stream().map(e -> e.getId()).collect(Collectors.toList());
-		studentExtracurricularExercisesSituationDao.batchDelete(collect1);
+//		List<Long> collect1 = situations.stream().map(e -> e.getId()).collect(Collectors.toList());
+//		studentExtracurricularExercisesSituationDao.batchDelete(collect1);
 		String collect = situations.stream().map(e -> e.getCourseIds()).filter(e -> StringUtils.isNotEmpty(e)).collect(Collectors.joining(","));
 		if(StringUtils.isNotEmpty(collect)){
 			//更新课程服务指标