|
@@ -85,12 +85,12 @@ public class ShopServiceImpl implements ShopService {
|
|
|
}
|
|
|
// 查找用户表是否存在
|
|
|
Integer dbUserId = baseMapper.getUserIdByMobile(bindMobile);
|
|
|
- if (dbUserId > 0) {
|
|
|
+ if (null != dbUserId && dbUserId > 0) {
|
|
|
return ResponseJson.error("该手机号已被使用", null);
|
|
|
}
|
|
|
// 查找运营人员表是否存在
|
|
|
Integer dbOperationId = baseMapper.getOperationIdByMobile(bindMobile);
|
|
|
- if (dbOperationId > 0) {
|
|
|
+ if (null != dbOperationId && dbOperationId > 0) {
|
|
|
return ResponseJson.error("您已是机构运营人员,无需再注册机构", null);
|
|
|
}
|
|
|
String redisSmsCode = (String) redisService.get("code:" + bindMobile);
|
|
@@ -99,7 +99,7 @@ public class ShopServiceImpl implements ShopService {
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(email)) {
|
|
|
dbUserId = baseMapper.getUserIdByEmail(email);
|
|
|
- if (dbUserId > 0) {
|
|
|
+ if (null != dbUserId && dbUserId > 0) {
|
|
|
return ResponseJson.error("该邮箱已被使用", null);
|
|
|
}
|
|
|
}
|
|
@@ -235,12 +235,12 @@ public class ShopServiceImpl implements ShopService {
|
|
|
}
|
|
|
// 查找用户表是否存在
|
|
|
Integer dbUserId = baseMapper.getUserIdByMobile(bindMobile);
|
|
|
- if (dbUserId > 0) {
|
|
|
+ if (null != dbUserId && dbUserId > 0) {
|
|
|
return ResponseJson.error("该手机号已被使用", null);
|
|
|
}
|
|
|
// 查找运营人员表是否存在
|
|
|
Integer dbOperationId = baseMapper.getOperationIdByMobile(bindMobile);
|
|
|
- if (dbOperationId > 0) {
|
|
|
+ if (null != dbOperationId && dbOperationId > 0) {
|
|
|
return ResponseJson.error("您已是机构运营人员,无需再注册机构", null);
|
|
|
}
|
|
|
String redisSmsCode = (String) redisService.get("code:" + bindMobile);
|
|
@@ -255,7 +255,7 @@ public class ShopServiceImpl implements ShopService {
|
|
|
if (StringUtils.isNotBlank(email)) {
|
|
|
// 查找用户表是否存在相同邮箱
|
|
|
Integer dbUserId = baseMapper.getUserIdByEmail(email);
|
|
|
- if (dbUserId > 0) {
|
|
|
+ if (null != dbUserId && dbUserId > 0) {
|
|
|
return ResponseJson.error("该邮箱已被使用", null);
|
|
|
}
|
|
|
}
|