|
|
@@ -171,8 +171,10 @@ public class SysRegisterService
|
|
|
upUser.setScores(cardUserBody.getScores());
|
|
|
upUser.setSchoolId(cardUserBody.getSchoolId());
|
|
|
upUser.setClassId(cardUserBody.getClassId());
|
|
|
-
|
|
|
-
|
|
|
+ upUser.setPhonenumber(cardUserBody.getMobile());
|
|
|
+ if (!userService.checkPhoneUnique(upUser)) {
|
|
|
+ throw new ValidationException("保存用户'" + upUser.getNickName() + "'失败,注册手机已存在" + cardUserBody.getMobile());
|
|
|
+ }
|
|
|
JSONObject directed = cardUserBody.getDirectionStudy().getJSONObject(0);
|
|
|
Long planId = directed.getLongValue("majorId");
|
|
|
Long universityId = directed.getLongValue("universityId");
|
|
|
@@ -186,7 +188,7 @@ public class SysRegisterService
|
|
|
upCard.setClassId(cardUserBody.getClassId());
|
|
|
upCard.setCampusId(cardUserBody.getCampusSchoolId());
|
|
|
upCard.setCampusClassId(cardUserBody.getCampusClassId());
|
|
|
-
|
|
|
+ upCard.setOutDate(cardUserBody.getOutDate());
|
|
|
userService.updateUserInfo(upUser);
|
|
|
cardsService.updateDzCards(upCard);
|
|
|
}
|