|
@ -36,6 +36,7 @@ import com.elink.esua.epdc.commons.tools.utils.ConvertUtils; |
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
import com.elink.esua.epdc.constant.UserFieldConsant; |
|
|
import com.elink.esua.epdc.constant.UserFieldConsant; |
|
|
import com.elink.esua.epdc.dao.*; |
|
|
import com.elink.esua.epdc.dao.*; |
|
|
|
|
|
import com.elink.esua.epdc.dto.CachingUserInfoDTO; |
|
|
import com.elink.esua.epdc.dto.ParentAndAllDeptDTO; |
|
|
import com.elink.esua.epdc.dto.ParentAndAllDeptDTO; |
|
|
import com.elink.esua.epdc.dto.UserDTO; |
|
|
import com.elink.esua.epdc.dto.UserDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcUserGroupInviteFormDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcUserGroupInviteFormDTO; |
|
@ -767,6 +768,30 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
return new Result(); |
|
|
return new Result(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @param formDTO |
|
|
|
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.CachingUserInfoDTO> |
|
|
|
|
|
* @Author yinzuomei |
|
|
|
|
|
* @Description 获取用户缓存信息 |
|
|
|
|
|
* @Date 2019/12/18 14:01 |
|
|
|
|
|
**/ |
|
|
|
|
|
@Override |
|
|
|
|
|
public Result<CachingUserInfoDTO> queryCachingUserInfo(EpdcAppQueryUserInfoFormDTO formDTO) { |
|
|
|
|
|
if (StringUtils.isBlank(formDTO.getOpenId())) { |
|
|
|
|
|
throw new RenException("openId不能为空"); |
|
|
|
|
|
} |
|
|
|
|
|
CachingUserInfoDTO cachingUserInfoDTO = null; |
|
|
|
|
|
if (StringUtils.isNotBlank(formDTO.getUnionId())) { |
|
|
|
|
|
//根据unionId查询
|
|
|
|
|
|
cachingUserInfoDTO = this.baseDao.selectCachingUserInfoDTO(null, formDTO.getUnionId()); |
|
|
|
|
|
} |
|
|
|
|
|
if (null == cachingUserInfoDTO) { |
|
|
|
|
|
//根据openId查询
|
|
|
|
|
|
cachingUserInfoDTO = this.baseDao.selectCachingUserInfoDTO(formDTO.getOpenId(), null); |
|
|
|
|
|
} |
|
|
|
|
|
return new Result<CachingUserInfoDTO>().ok(cachingUserInfoDTO); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 根据微信信息查询用户 |
|
|
* 根据微信信息查询用户 |
|
|
* |
|
|
* |
|
|