Commit 133a4d52 by 墨竹

fix:根据staffid查询userid

parent 2fdf7719
......@@ -68,11 +68,11 @@ public interface MessageApiService {
* 获取新的微信用户id
*
* @param wxEnterpriseId 微信企业id
* @param wxUserId 微信用户id
* @param staffId 微信用户id
* @return {@link String }
* @author mozhu
* @date 2022-03-10 13:48:10
*/
String getNewWxUserId(String wxEnterpriseId, String wxUserId);
String getNewWxUserIdByStaffId(String wxEnterpriseId, String staffId);
}
......@@ -582,12 +582,12 @@ public class MessageApiServiceImpl implements MessageApiService {
}
@Override
public String getNewWxUserId(String wxEnterpriseId, String wxUserId) {
public String getNewWxUserIdByStaffId(String wxEnterpriseId, String staffId) {
WxEnterpriseQwDTO qwDTO = this.wxEnterpriseService.getQwInfo(wxEnterpriseId) ;
if (qwDTO == null) {
return "";
}
TabHaobanStaff tabHaobanStaff = staffService.selectByUserIdAndEnterpriseId(wxUserId, wxEnterpriseId);
TabHaobanStaff tabHaobanStaff = staffService.selectById(staffId);
if (tabHaobanStaff == null) {
return "";
}
......
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