修复判断会员存在条件参数传递顺序错误问题
This commit is contained in:
parent
6ce2b65d89
commit
8426294a0f
@ -681,7 +681,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberMapper, Member> impleme
|
|||||||
*/
|
*/
|
||||||
private void checkMember(String userName, String mobilePhone) {
|
private void checkMember(String userName, String mobilePhone) {
|
||||||
//判断手机号是否存在
|
//判断手机号是否存在
|
||||||
if (findMember(userName, mobilePhone) > 0) {
|
if (findMember(mobilePhone, userName) > 0) {
|
||||||
throw new ServiceException(ResultCode.USER_EXIST);
|
throw new ServiceException(ResultCode.USER_EXIST);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user