|
@@ -237,7 +237,7 @@ public class MemberUserServiceImpl implements MemberUserService {
|
|
// 校验存在
|
|
// 校验存在
|
|
validateUserExists(updateReqVO.getId());
|
|
validateUserExists(updateReqVO.getId());
|
|
// 校验手机唯一
|
|
// 校验手机唯一
|
|
- validateMobileUnique(updateReqVO.getId(), updateReqVO.getMobile());
|
|
|
|
|
|
+// validateMobileUnique(updateReqVO.getId(), updateReqVO.getMobile());
|
|
|
|
|
|
// 更新
|
|
// 更新
|
|
MemberUserDO updateObj = MemberUserConvert.INSTANCE.convert(updateReqVO);
|
|
MemberUserDO updateObj = MemberUserConvert.INSTANCE.convert(updateReqVO);
|
|
@@ -321,14 +321,16 @@ public class MemberUserServiceImpl implements MemberUserService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void updateUserByMobile(Long systemUserId, String mobile) {
|
|
public void updateUserByMobile(Long systemUserId, String mobile) {
|
|
- if(StrUtil.isEmpty(mobile)){
|
|
|
|
|
|
+ if (StrUtil.isEmpty(mobile)) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- MemberUserDO memberUserDO = memberUserMapper.selectByMobile(mobile);
|
|
|
|
- if(memberUserDO!=null){
|
|
|
|
- memberUserDO.setSystemUsersId(systemUserId);
|
|
|
|
- memberUserMapper.updateById(memberUserDO);
|
|
|
|
|
|
+ List<MemberUserDO> memberUserDOS = memberUserMapper.selectListByMobile(mobile);
|
|
|
|
+ if (!memberUserDOS.isEmpty()) {
|
|
|
|
+ for (MemberUserDO memberUserDO : memberUserDOS) {
|
|
|
|
+ memberUserDO.setSystemUsersId(systemUserId);
|
|
|
|
+ memberUserMapper.updateById(memberUserDO);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|