Commit 24a4cfbf by 徐高华

成员id处理

parent b4902703
...@@ -603,9 +603,11 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -603,9 +603,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