Commit 265806c6 by fudahua

会员标签同步-伪登录

parent 2c7b8baa
......@@ -142,32 +142,15 @@ public class InfoController extends WebBaseController{
loginStaff = staffDTOS.get(0);
if (staffDTOS.size() > 1) {
String dictName = loginUserId.getDictName();
String[] split = dictName.split("-");
if (split.length > 1) {
for (int i=0;i<split.length;i++) {
// String weiCorpId = split[1];
String weiCorpId = split[i];
if (enterprise.getWxEnterpriseId().equals(wxEnterpriseApiService.getEnterpriseBycorpId(weiCorpId))) {
WxEnterpriseDTO weiWxEnterpriseDTO = wxEnterpriseApiService.getEnterpriseBycorpId(weiCorpId);
System.out.println("执行"+i);
if (null != weiWxEnterpriseDTO) {
loginStaff = staffDTOS.stream().filter(staffDTO -> {
if (weiWxEnterpriseDTO.getWxEnterpriseId().equals(staffDTO.getWxEnterpriseId())) {
return true;
} else {
return false;
}
}).findFirst().orElse(staffDTOS.get(0));
}
}
loginStaff = staffDTOS.stream().filter(staffDTO -> {
if (dictName.equals(staffDTO.getWxEnterpriseId())) {
return true;
} else {
return false;
}
}
}).findFirst().orElse(staffDTOS.get(0));
}
}
// StaffDTO staffDTO = staffApiService.selectByNationcodeAndPhoneNumber(enterprise.getWxEnterpriseId(), "86", midPhone);
// if (null !=staffDTO) {
// loginStaff=staffDTO;
// }
}
}
......
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