企业微信同步
This commit is contained in:
+1
-1
@@ -120,7 +120,7 @@ public class AuthController {
|
|||||||
login.setRoleIds(adminAuthService.getUserRoleIds(login.getId()));
|
login.setRoleIds(adminAuthService.getUserRoleIds(login.getId()));
|
||||||
String token = userSessionService.createUserSession(login, getClientIP(), getUserAgent());
|
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();
|
AuthLoginRespVO vo = AuthLoginRespVO.builder().token(token).user(cpuser).build();
|
||||||
return CommonResult.success(vo);
|
return CommonResult.success(vo);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -110,7 +110,7 @@ public class CpUserServiceImpl extends ServiceImpl<CpUserMapper,CpUserDO> implem
|
|||||||
public void cpUserSync() throws WxErrorException {
|
public void cpUserSync() throws WxErrorException {
|
||||||
WxCpConfigStorage config = wxCpService.getWxCpConfigStorage();
|
WxCpConfigStorage config = wxCpService.getWxCpConfigStorage();
|
||||||
List<WxCpDepart> departList = wxCpService.getDepartmentService().list(null);
|
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);
|
List<CpUserDO> rs = CpUserConvert.INSTANCE.convertListFromWxApi(userList);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user