Joburgess 5 tahun lalu
induk
melakukan
3b34917579

+ 3 - 0
edu-user/edu-user-biz/src/main/java/com/keao/edu/user/service/impl/ExamRegistrationServiceImpl.java

@@ -139,6 +139,9 @@ public class ExamRegistrationServiceImpl extends BaseServiceImpl<Long, ExamRegis
             amount = amount.add(theoryLevelFee);
         }
 
+        if(Objects.isNull(examRegistration.getSubjectId())){
+            examRegistration.setSubjectId(0);
+        }
         examRegistration.setTenantId(organization.getTenantId());
         examRegistration.setStatus(StudentRegistrationStatusEnum.PAY_WAIT);
         examRegistration.setLevelFee(registrationFee);

+ 1 - 1
edu-user/edu-user-biz/src/main/java/com/keao/edu/user/service/impl/ExamRoomServiceImpl.java

@@ -172,7 +172,7 @@ public class ExamRoomServiceImpl extends BaseServiceImpl<Long, ExamRoom> impleme
 			throw new BizException("线下考试请指定考试地址");
 		}
 		if(StringUtils.isBlank(examRoom.getSubjectIdList())){
-			throw new BizException("请指定考试专业");
+			examRoom.setSubjectIdList("0");
 		}
 		if(Objects.isNull(examRoom.getMainTeacherUserId())){
 			throw new BizException("请指定主考老师");