Browse Source

Merge branch 'master' of http://git.dayaedu.com/yonge/mec

zouxuan 4 years ago
parent
commit
affd09473f

+ 2 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/ExtracurricularExercisesReplyServiceImpl.java

@@ -132,7 +132,8 @@ public class ExtracurricularExercisesReplyServiceImpl extends BaseServiceImpl<Lo
 		if(Objects.isNull(existExtra)){
 		if(Objects.isNull(existExtra)){
 			throw new BizException("作业不存在");
 			throw new BizException("作业不存在");
 		}
 		}
-		boolean push=Objects.isNull(existExtra.getAttachments());
+//		boolean push=Objects.isNull(existExtra.getAttachments());
+		boolean push=true;
 		ExtracurricularExercises extracurricularExercises = extracurricularExercisesDao.get(existExtra.getExtracurricularExercisesId());
 		ExtracurricularExercises extracurricularExercises = extracurricularExercisesDao.get(existExtra.getExtracurricularExercisesId());
 		if(Objects.isNull(extracurricularExercises)){
 		if(Objects.isNull(extracurricularExercises)){
 			throw new BizException("作业不存在");
 			throw new BizException("作业不存在");

+ 2 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentCourseHomeworkServiceImpl.java

@@ -101,7 +101,8 @@ public class StudentCourseHomeworkServiceImpl extends BaseServiceImpl<Long, Stud
             throw new BizException("该作业已超出可提交时间范围,无法提交作业。");
             throw new BizException("该作业已超出可提交时间范围,无法提交作业。");
         }
         }
 
 
-        boolean push = Objects.isNull(existHomework.getAttachments());
+//        boolean push = Objects.isNull(existHomework.getAttachments());
+        boolean push = true;
         bean.setSubmitTime(now);
         bean.setSubmitTime(now);
         super.update(bean);
         super.update(bean);
         bean = studentCourseHomeworkDao.get(bean.getId());
         bean = studentCourseHomeworkDao.get(bean.getId());