Commit da215b9f by fudahua

企业微信标签同步

parent c58e9304
......@@ -114,7 +114,7 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
if (CollectionUtils.isNotEmpty(unassignedListDTO.getInfo())) {
ret.addAll(unassignedListDTO.getInfo());
}
} while (StringUtils.isNotBlank(cursor) && unassignedListDTO.getErrorcode() == 0);
} while (StringUtils.isNotBlank(cursor) && unassignedListDTO.getErrcode() == 0);
return ret;
}
......@@ -134,7 +134,7 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
TabHaobanStaff handover = staffService.selectById(dto.getHandoverStaffId());
TabHaobanStaff takeover = staffService.selectById(dto.getTakeoverStaffId());
QywxTransferCustomerDTO customerDTO = qywxUserApiService.transferResult(wxEnterpriseDTO.getCorpid(), config.getWxSuiteid(), handover.getWxUserId(), takeover.getWxUserId(), true);
if (customerDTO.getErrorcode() != 0) {
if (customerDTO.getErrcode() != 0) {
return;
}
List<QywxTransferCustomerInfoDTO> customerResults = customerDTO.getCustomer();
......@@ -235,7 +235,7 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
handoverStaffExternalMap.forEach((wxUserId, list) -> {
QywxTransferCustomerDTO transferCustomerResp = qywxUserApiService.transferCustomer(wxEnterpriseDTO.getCorpid(), config.getWxSuiteid(), wxUserId, tabHaobanStaff.getWxUserId(), list);
if (transferCustomerResp.getErrorcode() != 0) {
if (transferCustomerResp.getErrcode() != 0) {
logger.info("转移异常");
}
List<QywxTransferCustomerInfoDTO> customer = transferCustomerResp.getCustomer();
......
......@@ -67,7 +67,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
return;
}
QywxGetCorpTagListDTO corpTagListResp = qywxSuiteApiService.getCorpTagList(wxEnterpriseDTO.getCorpid(), config.getWxSuiteid(), null, -1);
if (corpTagListResp.getErrorcode() != 0) {
if (corpTagListResp.getErrcode() != 0) {
logger.info("企业微信标签有问题:{}", wxEnterpriseId);
return;
}
......@@ -86,7 +86,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
WxEnterpriseDTO wxEnterpriseDTO = wxEnterpriseService.selectById(wxEnterpriseId);
//调用企业微信接口保存
QywxGetCorpTagListDTO resp = this.saveQywxTag(wxEnterpriseDTO, infoDTO, items);
if (resp.getErrorcode() != 0) {
if (resp.getErrcode() != 0) {
logger.info("同步失败:{}", JSONObject.toJSONString(resp));
return;
}
......
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