|
|
@ -176,9 +176,14 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
// 根据openId获取已提交注册的用户信息
|
|
|
|
wrapper.eq("WX_OPEN_ID", openId) |
|
|
|
.select(FieldConstant.ID, "NICKNAME", "FACE_IMG", FieldConstant.MOBILE, "REAL_NAME", |
|
|
|
FieldConstant.STATE, FieldConstant.GRID_ID, "PARTY_FLAG", "REMARK"); |
|
|
|
UserEntity userEntity = this.baseDao.selectOne(wrapper); |
|
|
|
return new Result().ok(ConvertUtils.sourceToTarget(userEntity, UserDTO.class)); |
|
|
|
FieldConstant.STATE, FieldConstant.GRID_ID, "PARTY_FLAG", "REMARK") |
|
|
|
.orderByDesc(FieldConstant.CREATED_TIME); |
|
|
|
List<UserEntity> userEntityList = this.baseDao.selectList(wrapper); |
|
|
|
if (CollUtil.isNotEmpty(userEntityList)) { |
|
|
|
UserEntity userEntity = userEntityList.get(NumConstant.ZERO); |
|
|
|
return new Result().ok(ConvertUtils.sourceToTarget(userEntity, UserDTO.class)); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|