|
|
@@ -74,14 +74,14 @@ public class UserServiceImpl implements UserService {
|
|
|
targetUser.setCreateTime(new Date()); // 设置创建时间
|
|
|
|
|
|
// 同一个邮箱、学号只能注册一次
|
|
|
- if (isOfficialNumberNotExists(targetUser.getOfficialNumber())
|
|
|
- && isEmailNotExists(targetUser.getOfficialEmail())) {
|
|
|
- int status = userMapper.insert(targetUser);
|
|
|
- if (status == 0) {
|
|
|
- log.error("createUser -- 数据库插入错误:");
|
|
|
- throw new MyException(501, "数据库插入错误");
|
|
|
- }
|
|
|
- }
|
|
|
+// if (isOfficialNumberNotExists(targetUser.getOfficialNumber())
|
|
|
+// && isEmailNotExists(targetUser.getOfficialEmail())) {
|
|
|
+// int status = userMapper.insert(targetUser);
|
|
|
+// if (status == 0) {
|
|
|
+// log.error("createUser -- 数据库插入错误:");
|
|
|
+// throw new MyException(501, "数据库插入错误");
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
log.info("User创建完毕,User对象如下:" + targetUser);
|
|
|
|