Commit 80be5413 by fudahua

会员标签同步-伪登录

parent 265806c6
...@@ -139,7 +139,6 @@ public class InfoController extends WebBaseController{ ...@@ -139,7 +139,6 @@ public class InfoController extends WebBaseController{
staffDTOS.addAll(userDtos); staffDTOS.addAll(userDtos);
} }
if (CollectionUtils.isNotEmpty(staffDTOS)) { if (CollectionUtils.isNotEmpty(staffDTOS)) {
loginStaff = staffDTOS.get(0);
if (staffDTOS.size() > 1) { if (staffDTOS.size() > 1) {
String dictName = loginUserId.getDictName(); String dictName = loginUserId.getDictName();
loginStaff = staffDTOS.stream().filter(staffDTO -> { loginStaff = staffDTOS.stream().filter(staffDTO -> {
...@@ -148,7 +147,9 @@ public class InfoController extends WebBaseController{ ...@@ -148,7 +147,9 @@ public class InfoController extends WebBaseController{
} else { } else {
return false; return false;
} }
}).findFirst().orElse(staffDTOS.get(0)); }).findFirst().orElse(loginStaff);
} else {
loginStaff = staffDTOS.get(0);
} }
} }
} }
......
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