|
|
@@ -90,6 +90,7 @@ public class UserClient implements IUserClient {
|
|
|
.eq(CarOwner::getCarOwnerPhone, user.getPhone())
|
|
|
.eq(CarOwner::getDealerId, shopAppCorpsDescVO.getSrcDistributorId())
|
|
|
.eq(CarOwner::getStoreId, userInfoById.getId())
|
|
|
+ .eq(CarOwner::getIsDeleted, 0)
|
|
|
.last("LIMIT 1"));
|
|
|
if (carOwner != null) {
|
|
|
carOwner.setUpdateUserName(AuthUtil.getUserName());
|
|
|
@@ -372,6 +373,9 @@ public class UserClient implements IUserClient {
|
|
|
@Override
|
|
|
public UserInfo getUserInfoByPhone(String phone, String category) {
|
|
|
UserInfo userInfo = service.getUserInfoByPhone(phone, category);
|
|
|
+ if (org.springframework.util.ObjectUtils.isEmpty(userInfo)) {
|
|
|
+ return userInfo;
|
|
|
+ }
|
|
|
List<CarOwner> carOwnerList = carOwnerService.list(new LambdaQueryWrapper<CarOwner>()
|
|
|
.eq(CarOwner::getUserId, userInfo.getUser().getId())
|
|
|
.eq(CarOwner::getIsDeleted, 0));
|