Commit 1180182a by fudahua

根据userId 伪登录

parent e7666575
......@@ -119,7 +119,15 @@ public class InfoController extends WebBaseController{
logger.info("伪登录:{},userId:{}",loginStaff.getPhoneNumber(), JSONObject.toJSONString(loginUserId));
if (null != loginUserId) {
String wxUserId = loginUserId.getDictValue();
List<StaffDTO> staffDTOS = staffApiService.listByWxUserId(wxUserId);
List<StaffDTO> staffDTOS=new ArrayList<>();
List<StaffDTO> phoneDtos = staffApiService.listByPhoneNumber(loginUserId.getDictCode());
List<StaffDTO> userDtos = staffApiService.listByWxUserId(wxUserId);
if (CollectionUtils.isEmpty(phoneDtos)) {
staffDTOS.addAll(phoneDtos);
}
if (CollectionUtils.isEmpty(userDtos)) {
staffDTOS.addAll(userDtos);
}
if (CollectionUtils.isNotEmpty(staffDTOS)) {
if (staffDTOS.size() > 1) {
String dictName = loginUserId.getDictName();
......
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