openid
parent
cbd3de9a31
commit
6baf6a0dd8
|
|
@ -10,6 +10,8 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.jjb.saas.framework.utils.CaptchaUtils;
|
||||
import com.jjb.saas.system.client.user.facade.UserFacade;
|
||||
import com.jjb.saas.system.client.user.response.UserDetailCO;
|
||||
import com.zcloud.basic.info.command.convertor.CorpInfoCoConvertor;
|
||||
import com.zcloud.basic.info.command.convertor.UserCoConvertor;
|
||||
import com.zcloud.basic.info.constant.RedisConstant;
|
||||
|
|
@ -28,6 +30,7 @@ import com.zcloud.gbscommon.utils.PageQueryHelper;
|
|||
import com.zcloud.gbscommon.utils.Tools;
|
||||
import com.zcloud.gbscommon.utils.ZcloudRedisUtil;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
|
@ -71,7 +74,8 @@ public class UserQueryExe {
|
|||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
|
||||
|
||||
@DubboReference
|
||||
private UserFacade userFacade;
|
||||
/**
|
||||
* 查询集合
|
||||
*
|
||||
|
|
|
|||
|
|
@ -129,6 +129,9 @@ public class UserAddCmd extends Command {
|
|||
// 入职状态
|
||||
@ApiModelProperty(value = "是否流动人员,1-流动,0-固定人员")
|
||||
private Integer flowFlag;
|
||||
// 微信openid
|
||||
@ApiModelProperty(value = "微信openid")
|
||||
private String openId;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -92,5 +92,8 @@ public class UserUpdateCmd extends Command {
|
|||
// 入职状态
|
||||
@ApiModelProperty(value = "是否流动人员,1-流动,0-固定人员")
|
||||
private Integer flowFlag;
|
||||
// 微信openid
|
||||
@ApiModelProperty(value = "微信openid")
|
||||
private String openId;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -189,5 +189,8 @@ public class UserCO extends ClientObject {
|
|||
// 性别
|
||||
@ApiModelProperty(value = "性别")
|
||||
private String sex;
|
||||
// 微信openid
|
||||
@ApiModelProperty(value = "微信openid")
|
||||
private String openId;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,10 @@ public interface UserGateway {
|
|||
* 修改
|
||||
*/
|
||||
Boolean update(UserE userE);
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean updateInfo(UserE userE);
|
||||
|
||||
Boolean updateByPhone(UserE userE);
|
||||
|
||||
|
|
|
|||
|
|
@ -158,6 +158,8 @@ public class UserE extends BaseE {
|
|||
|
||||
// 性别
|
||||
private String sex;
|
||||
// 微信openid
|
||||
private String openId;
|
||||
|
||||
public static Boolean checkUserInfoComplete(UserE userE) {
|
||||
return StringUtils.isNotEmpty(userE.getUsername()) &&
|
||||
|
|
|
|||
|
|
@ -169,6 +169,14 @@ public class UserGatewayImpl implements UserGateway {
|
|||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean updateInfo(UserE userE) {
|
||||
UserDO d = new UserDO();
|
||||
BeanUtils.copyProperties(userE, d);
|
||||
userRepository.updateInfoById(d);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deletedUserById(Long id) {
|
||||
userRepository.deleteUserById(id);
|
||||
|
|
|
|||
|
|
@ -156,6 +156,9 @@ public class UserDO extends BaseDO {
|
|||
@TableField(exist = false)
|
||||
private String sex;
|
||||
|
||||
// 微信openid
|
||||
@ApiModelProperty(value = "微信openid")
|
||||
private String openId;
|
||||
|
||||
|
||||
public UserDO(String userId) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue