Commit 7995af50 by 徐高华

Merge branch 'master_xgh_bug_11月' into 'developer'

成员id处理

See merge request !413
parents 5482ab64 10b76999
...@@ -614,9 +614,11 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -614,9 +614,11 @@ public class StaffApiServiceImpl implements StaffApiService {
logger.info("没有配置secret:{}", qwDTO.getWxEnterpriseId()); logger.info("没有配置secret:{}", qwDTO.getWxEnterpriseId());
return null; return null;
} }
String wxUserId = relationDTO.getQwUserId(); String staffId = relationDTO.getStaffId() ;
TabHaobanStaff staff = this.staffMapper.selectByPrimaryKey(staffId) ;
String wxUserId = staff.getWxUserId() ;
if (qwDTO.needOpenUserIdDk()) { if (qwDTO.needOpenUserIdDk()) {
wxUserId = relationDTO.getOpenUserId(); wxUserId = staff.getWxOpenUseId() ;
} }
UserDTO user = qywxUserApiService.getSelfWorkWxUser(qwDTO.getDkCorpid(), secretSetting.getSecretVal(), wxUserId); UserDTO user = qywxUserApiService.getSelfWorkWxUser(qwDTO.getDkCorpid(), secretSetting.getSecretVal(), wxUserId);
if (user != null) { if (user != null) {
......
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