zouxuan 5 năm trước cách đây
mục cha
commit
dbb0cf7206

+ 1 - 1
edu-user/edu-teacher-server/src/main/resources/application.yml

@@ -22,7 +22,7 @@ eureka:
 
 spring:
   application:
-    name: student-server
+    name: techer-server
 
   servlet:
     multipart:

+ 4 - 0
edu-user/edu-user-biz/src/main/java/com/keao/edu/user/service/impl/ExamReviewServiceImpl.java

@@ -24,6 +24,7 @@ import com.keao.edu.user.page.ExamReviewRecordQueryInfo;
 import com.keao.edu.user.service.ExamReviewService;
 import com.keao.edu.user.service.ExamRoomStudentRelationService;
 import com.keao.edu.util.collection.MapUtil;
+import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Isolation;
@@ -112,6 +113,9 @@ public class ExamReviewServiceImpl extends BaseServiceImpl<Long, ExamReview> imp
 	@Override
 	@Transactional(rollbackFor = Exception.class, isolation = Isolation.SERIALIZABLE)
 	public void add(ExamReview examReview) {
+		if(StringUtils.isEmpty(examReview.getEvaluationContent()) || examReview.getEvaluationResult() == null){
+			throw new BizException("评审失败:请完整填写评审内容");
+		}
 		SysUser sysUser = sysUserFeignService.queryUserInfo();
 		sysUserDao.lockUser(sysUser.getId());
 		Long examRegistrationId = examReview.getExamRegistrationId();