Browse Source

企业微信同步

zyh
小久哥 3 years ago
parent
commit
d18238dbab
  1. 2
      yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java
  2. 2
      yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/service/CpUser/CpUserServiceImpl.java

2
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java

@ -120,7 +120,7 @@ public class AuthController {
login.setRoleIds(adminAuthService.getUserRoleIds(login.getId()));
String token = userSessionService.createUserSession(login, getClientIP(), getUserAgent());
log.info("TOKEN:::{}",token);
log.info("{}:TOKEN:::{}",user.getUsername(),token);
AuthLoginRespVO vo = AuthLoginRespVO.builder().token(token).user(cpuser).build();
return CommonResult.success(vo);
}

2
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/service/CpUser/CpUserServiceImpl.java

@ -110,7 +110,7 @@ public class CpUserServiceImpl extends ServiceImpl<CpUserMapper,CpUserDO> implem
public void cpUserSync() throws WxErrorException {
WxCpConfigStorage config = wxCpService.getWxCpConfigStorage();
List<WxCpDepart> departList = wxCpService.getDepartmentService().list(null);
List<WxCpUser> userList = wxCpService.getUserService().listByDepartment(35L, true, 0);
List<WxCpUser> userList = wxCpService.getUserService().listByDepartment(1L, true, 0);
List<CpUserDO> rs = CpUserConvert.INSTANCE.convertListFromWxApi(userList);

Loading…
Cancel
Save