Commit ae11e72d by 墨竹

Merge branch 'fixbug_0719' into developer

parents 9b1f9e3f 88ae158a
......@@ -362,7 +362,7 @@ public class StaffApiServiceImpl implements StaffApiService {
String openUserid = getOpenUserid(userId, corpid);
if (StringUtils.isNotBlank(openUserid)) {
staff.setWxOpenUseId(openUserid);
String userid = getUserid(openUserid, corpid);
String userid = getUserid(openUserid, wxEnterpriseId);
if (StringUtils.isNotBlank(userid)) {
staff.setWxUserId(userid);
}
......@@ -401,12 +401,15 @@ public class StaffApiServiceImpl implements StaffApiService {
/**
* 获取wxuserid
*
* @param openUserId
* @param corpid
* @return
* @param wxEnterpriseId wx企业标识
* @return {@link String }
* @author mozhu
* @date 2022-07-19 11:19:44
*/
private String getUserid(String openUserId, String corpid) {
TabHaobanWxApplication tabHaobanWxApplication = wxApplicationService.selectByCorpIdAndApplicationType(corpid,3);
private String getUserid(String openUserId, String wxEnterpriseId) {
TabHaobanWxApplication tabHaobanWxApplication = wxApplicationService.selectByWxEnterpriseIdAndApplicationType(wxEnterpriseId,3);
SecretSettingDTO secretSetting = secretSettingService.getSecretSetting(tabHaobanWxApplication.getWxEnterpriseId(), 5);
List<QywxNewUseridDTO> qywxNewUseridDTOS = qywxUserApiService.getSelfOpenuseridToUserid(tabHaobanWxApplication.getCorpid(), secretSetting.getSecretVal(),
tabHaobanWxApplication.getAgentId(), Collections.singletonList(openUserId));
......
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