|
|
@@ -76,7 +76,6 @@ public class WorkContactEmployeeServiceImpl extends ServiceImpl<WorkContactEmplo
|
|
|
|
|
|
//请求typer,匹配typer标签
|
|
|
if (list.size() > 0) {
|
|
|
- list = getAppIdAndOpenidList(list);
|
|
|
list = getTyperTag(list);
|
|
|
}
|
|
|
|
|
|
@@ -141,8 +140,8 @@ public class WorkContactEmployeeServiceImpl extends ServiceImpl<WorkContactEmplo
|
|
|
for (int i = 0; i < j; i++) {
|
|
|
for(t=0;t<resLen;t++) {
|
|
|
//匹配成功的
|
|
|
- if(responseList.getJSONObject(i).get("openid").equals(list.get(i).getOpenId())){
|
|
|
- list.get(i).setTyperTag(responseList.getJSONObject(i).get("label").toString()+list.get(i).getOpenId()+"--"+responseList.getJSONObject(i).get("openid"));
|
|
|
+ if(list.get(i).getOpenId() != null && responseList.getJSONObject(i).get("openid").equals(list.get(i).getOpenId())){
|
|
|
+ list.get(i).setTyperTag(responseList.getJSONObject(i).get("label").toString());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -150,30 +149,6 @@ public class WorkContactEmployeeServiceImpl extends ServiceImpl<WorkContactEmplo
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- private List<WorkContactEmployeeVo> getAppIdAndOpenidList(List<WorkContactEmployeeVo> list){
|
|
|
-
|
|
|
- int j = list.size();
|
|
|
- List<String> userIds = new ArrayList<String>();
|
|
|
-
|
|
|
- for (int i = 0; i < j; i++) {
|
|
|
- userIds.add(list.get(i).getClientWxId());
|
|
|
- }
|
|
|
-
|
|
|
- /*
|
|
|
- 这边欠缺,通过userId兑换appId和openId
|
|
|
- */
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- for (int i = 0; i < j; i++) {
|
|
|
- list.get(i).setAppId("wx0fc21731a702b4d2");
|
|
|
- list.get(i).setOpenId("0b11f9c6e87b4dff8efc9c520d8215a7");
|
|
|
- }
|
|
|
-
|
|
|
- return list;
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
public Map<String, Object> getPageList(GetWorkContactEmployeeHandle handle) {
|
|
|
|