Commit e6cd7d51 by 徐高华

staffid

parent 40b37550
......@@ -386,16 +386,21 @@ public class WxEnterpriseController extends WebBaseController {
}
private String getWxUserId(String wxEnterpriseId, String staffId,WxEnterpriseQwDTO qwDTO) {
StaffDTO dto = this.staffApiService.selectById(staffId) ;
logger.info("staffid={},返回={}" , staffId , JSON.toJSONString(dto));
if(null != dto) {
if(qwDTO.needOpenUserId3th()) {
return dto.getWxOpenUseId() ;
}else {
return dto.getWxUserId();
}
StaffDTO statff = null ;
if(StringUtils.isBlank(staffId)) {
statff = this.staffApiService.getWxStaffOne(wxEnterpriseId) ;
}else {
statff = this.staffApiService.selectById(staffId) ;
}
logger.info("staffid={},返回={}" , staffId , JSON.toJSONString(statff));
if(null == statff) {
return null ;
}
if(qwDTO.needOpenUserId3th()) {
return statff.getWxOpenUseId() ;
}else {
return statff.getWxUserId();
}
return 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