|
|
|
@ -428,8 +428,8 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
// userGridRel.setAllDeptIds(formUserDto.getStreetId() + "," + formUserDto.getCommunityId() + "," + formUserDto.getGridId());
|
|
|
|
// userGridRel.setParentDeptNames(formUserDto.getStreet() + "-" + formUserDto.getCommunity());
|
|
|
|
// userGridRel.setParentDeptIds(formUserDto.getStreetId() + "," + formUserDto.getCommunityId());
|
|
|
|
Result<ParentAndAllDeptDTO> parentAndAllDeptDTOResult=adminFeignClient.getParentAndAllDept(userGridRel.getGridId().toString()); |
|
|
|
if(!parentAndAllDeptDTOResult.success()){ |
|
|
|
Result<ParentAndAllDeptDTO> parentAndAllDeptDTOResult = adminFeignClient.getParentAndAllDept(userGridRel.getGridId().toString()); |
|
|
|
if (!parentAndAllDeptDTOResult.success()) { |
|
|
|
return new Result<EpdcUserRegisterInfoResultDTO>().error(parentAndAllDeptDTOResult.getMsg()); |
|
|
|
} |
|
|
|
userGridRel.setAllDeptNames(parentAndAllDeptDTOResult.getData().getAllDeptNames()); |
|
|
|
@ -769,8 +769,8 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
* @date 2019/12/7 17:19 |
|
|
|
*/ |
|
|
|
private UserDTO selectUserByWxInfo(String openId, String unionId) { |
|
|
|
if (!StringUtils.isNotBlank(openId) && !StringUtils.isNotBlank(unionId)) { |
|
|
|
throw new RenException("openId、unionId不能同时为空"); |
|
|
|
if (StringUtils.isBlank(openId)) { |
|
|
|
throw new RenException("openId不能同时为空"); |
|
|
|
} |
|
|
|
QueryWrapper<UserEntity> wrapper = new QueryWrapper<>(); |
|
|
|
UserEntity userEntity = null; |
|
|
|
@ -779,9 +779,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
userEntity = this.baseDao.selectOne(wrapper); |
|
|
|
} |
|
|
|
if (null == userEntity) { |
|
|
|
wrapper.eq(UserFieldConsant.WX_UNION_ID, unionId) |
|
|
|
.or() |
|
|
|
.eq(StringUtils.isNotBlank(openId), UserFieldConsant.WX_OPEN_ID, openId) |
|
|
|
wrapper.eq(UserFieldConsant.WX_OPEN_ID, openId) |
|
|
|
.orderByDesc(FieldConstant.CREATED_TIME); |
|
|
|
userEntity = this.baseDao.selectOne(wrapper); |
|
|
|
} |
|
|
|
|