修复判断会员存在条件参数传递顺序错误问题

This commit is contained in:
paulGao 2022-06-08 16:35:44 +08:00
parent 6ce2b65d89
commit 8426294a0f

View File

@ -681,7 +681,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberMapper, Member> impleme
*/
private void checkMember(String userName, String mobilePhone) {
//判断手机号是否存在
if (findMember(userName, mobilePhone) > 0) {
if (findMember(mobilePhone, userName) > 0) {
throw new ServiceException(ResultCode.USER_EXIST);
}
}