WANG 6 жил өмнө
parent
commit
e251bc7f76

+ 2 - 3
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/controller/AuthController.java

@@ -119,11 +119,10 @@ public class AuthController extends ControllerSupport {
 
 
 	@ApiOperation(value = "发送验证码", notes = "")
 	@ApiOperation(value = "发送验证码", notes = "")
 	@PostMapping("sendVerificationCode4Student")
 	@PostMapping("sendVerificationCode4Student")
-	public void sendVerificationCode4Student(@RequestParam(required = true) Long rootOrgId,
-			@RequestParam(required = true) String phone,
+	public void sendVerificationCode4Student(@RequestParam(required = true) String phone,
 			@RequestParam(required = true) Boolean bound) {
 			@RequestParam(required = true) Boolean bound) {
 
 
-		Boolean hasBeBound = studentService.hasBeBound(rootOrgId, phone);
+		Boolean hasBeBound = studentService.hasBeBound(phone);
 		if (bound && !hasBeBound.equals(bound)) {
 		if (bound && !hasBeBound.equals(bound)) {
 			throw new StatusException("B-002050", "手机号未被关联");
 			throw new StatusException("B-002050", "手机号未被关联");
 		} else if ((!bound) && hasBeBound.equals(bound)) {
 		} else if ((!bound) && hasBeBound.equals(bound)) {

+ 1 - 2
examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/StudentService.java

@@ -50,10 +50,9 @@ public interface StudentService {
 	 * 手机号码是否被绑定
 	 * 手机号码是否被绑定
 	 *
 	 *
 	 * @author WANGWEI
 	 * @author WANGWEI
-	 * @param rootOrgId
 	 * @param securityPhone
 	 * @param securityPhone
 	 * @return
 	 * @return
 	 */
 	 */
-	Boolean hasBeBound(Long rootOrgId, String securityPhone);
+	Boolean hasBeBound(String securityPhone);
 
 
 }
 }

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

@@ -332,11 +332,9 @@ public class StudentServiceImpl implements StudentService {
 	}
 	}
 
 
 	@Override
 	@Override
-	public Boolean hasBeBound(Long rootOrgId, String securityPhone) {
-		if (null == rootOrgId) {
-			throw new StatusException("B-120001", "rootOrgId is null");
-		}
-		StudentEntity s = studentRepo.findBySecurityPhoneAndRootOrgId(securityPhone, rootOrgId);
+	public Boolean hasBeBound(String securityPhone) {
+
+		StudentEntity s = studentRepo.findBySecurityPhone(securityPhone);
 		return null != s;
 		return null != s;
 	}
 	}