Commit 10b76999 by 徐高华

成员id处理

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