|
@@ -106,7 +106,7 @@ public class WxUserServiceImpl extends ServiceImpl<IWxUserMapper, WxUser> implem
|
|
|
if(StringUtils.isNotBlank(param.getPhoneNumber())){
|
|
|
List<WxUser> wxUsers = this.getByPhone(param.getPhoneNumber());
|
|
|
List<String> collect = wxUsers.stream().map(WxUser::getWxUserId).collect(Collectors.toList());
|
|
|
- if(!collect.contains(param.getWxUserId()) || collect.size() != 1){
|
|
|
+ if(collect.size() >0 && !collect.contains(param.getWxUserId())){
|
|
|
throw new BusinessException(ResultCode.WX_PHONE_EXIST);
|
|
|
}
|
|
|
}
|