Commit aa0667ef by fudahua

点击刷新企业微信数据

parent 4be67721
......@@ -243,4 +243,19 @@ public class ApplicationController extends WebBaseController{
public Object userInfo(String corpid, String suiteid, String userid){
return resultResponse(HaoBanErrCode.ERR_0, this.qywxUserApiService.getExternalUseridInfo(corpid, suiteid, userid));
}
@RequestMapping("sync-qywx")
@IgnoreLogin
public Object syncQywx(){
LoginVO login = (LoginVO) AuthRequestUtil.getLoginUser();
String wxEnterpriseId = login.getWxEnterpriseId();
WxEnterpriseDTO enterpriseDTO = this.wxEnterpriseApiService.getOne(wxEnterpriseId);
if(enterpriseDTO != null) {
String taskId = dealSyncOperationApiService.createQywxTask(wxEnterpriseId, "后门同步企业微信架构", login.getStaffDTO().getWxUserId(), "后门同步企业微信架构");
if (StringUtils.isBlank(taskId)) {
return resultResponse(HaoBanErrCode.ERR_1, false);
}
}
return resultResponse(HaoBanErrCode.ERR_0);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment