Ver Fonte

。。。

wangwei há 7 anos atrás
pai
commit
4c8dc2e784

+ 4 - 6
examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/impl/StudentServiceImpl.java

@@ -169,14 +169,12 @@ public class StudentServiceImpl implements StudentService {
 		List<Student> list = studentRepo.findAllByIdentityNumberAndRootOrgId(identityNumber,
 				rootOrgId);
 		if (1 < list.size()) {
-			throw new StatusException("B-160007",
-					"已经存在不同考生的身份证号相同的数据,请联系服务商处理. 身份证号: " + identityNumber);
+			throw new StatusException("B-160007", "已经存在不同考生的身份证号相同的数据. 身份证号: " + identityNumber);
 		}
 		if (StringUtils.isNotBlank(studentCode)) {
 			list = studentRepo.findAllByStudentCodeAndRootOrgId(studentCode, rootOrgId);
 			if (1 < list.size()) {
-				throw new StatusException("B-160008",
-						"已经存在不同考生的学号相同的数据,请联系服务商处理. 学号: " + studentCode);
+				throw new StatusException("B-160008", "已经存在不同考生的学号相同的数据. 学号: " + studentCode);
 			}
 		}
 
@@ -186,7 +184,7 @@ public class StudentServiceImpl implements StudentService {
 		if (null != studentByIdentity) {
 			String curStudentCode = studentByIdentity.getStudentCode();
 			if (StringUtils.isNotBlank(curStudentCode) && !curStudentCode.equals(studentCode)) {
-				throw new StatusException("B-160005", "身份证号已关联学号,请联系服务商处理.");
+				throw new StatusException("B-160005", "身份证号已关联学号");
 			}
 		}
 
@@ -196,7 +194,7 @@ public class StudentServiceImpl implements StudentService {
 			if (null != studentByCode) {
 				String curIdentityNumber = studentByCode.getIdentityNumber();
 				if (!curIdentityNumber.equals(identityNumber)) {
-					throw new StatusException("B-160006", "学号已关联身份证号,请联系服务商处理.");
+					throw new StatusException("B-160006", "学号已关联身份证号");
 				}
 			}
 		}