|
|
@ -4408,4 +4408,17 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result<String> getOrgIdByPhone(String phone) { |
|
|
|
LambdaQueryWrapper<IcResiUserEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
wrapper.eq(IcResiUserEntity::getMobile, phone); |
|
|
|
wrapper.eq(IcResiUserEntity::getDelFlag, NumConstant.ZERO_STR); |
|
|
|
List<IcResiUserEntity> list = baseDao.selectList(wrapper); |
|
|
|
String agencyId = null; |
|
|
|
if (null != list && list.size() > 0){ |
|
|
|
agencyId=list.get(0).getAgencyId(); |
|
|
|
} |
|
|
|
return new Result<String>().ok(agencyId); |
|
|
|
} |
|
|
|
|
|
|
|
} |