|
@@ -1,14 +1,18 @@
|
|
|
package com.jzg.organization.service.impl;
|
|
package com.jzg.organization.service.impl;
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.jzg.commons.entity.dto.PartnerReviewParam;
|
|
import com.jzg.commons.entity.dto.PartnerReviewParam;
|
|
|
import com.jzg.commons.entity.po.SysUserJzgInfo;
|
|
import com.jzg.commons.entity.po.SysUserJzgInfo;
|
|
|
|
|
+import com.jzg.commons.entity.user.vo.UserInfoWithPhone;
|
|
|
import com.jzg.commons.entity.vo.PartnerRecommenderVo;
|
|
import com.jzg.commons.entity.vo.PartnerRecommenderVo;
|
|
|
import com.jzg.organization.mapper.SysUserJzgInfoMapper;
|
|
import com.jzg.organization.mapper.SysUserJzgInfoMapper;
|
|
|
import com.jzg.organization.service.SysUserJzgInfoService;
|
|
import com.jzg.organization.service.SysUserJzgInfoService;
|
|
|
|
|
+import org.slf4j.Logger;
|
|
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
@@ -16,6 +20,8 @@ import java.util.Collections;
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
+import java.util.function.Function;
|
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @author quchen
|
|
* @author quchen
|
|
@@ -25,6 +31,8 @@ import java.util.Map;
|
|
|
@Service
|
|
@Service
|
|
|
public class SysUserJzgInfoServiceImpl extends ServiceImpl<SysUserJzgInfoMapper, SysUserJzgInfo> implements SysUserJzgInfoService {
|
|
public class SysUserJzgInfoServiceImpl extends ServiceImpl<SysUserJzgInfoMapper, SysUserJzgInfo> implements SysUserJzgInfoService {
|
|
|
|
|
|
|
|
|
|
+ private static final Logger log = LoggerFactory.getLogger(SysUserJzgInfoServiceImpl.class);
|
|
|
|
|
+
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private SysUserJzgInfoMapper sysUserJzgInfoMapper;
|
|
private SysUserJzgInfoMapper sysUserJzgInfoMapper;
|
|
|
|
|
|
|
@@ -131,4 +139,22 @@ public class SysUserJzgInfoServiceImpl extends ServiceImpl<SysUserJzgInfoMapper,
|
|
|
}
|
|
}
|
|
|
return res;
|
|
return res;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 查询用户基础信息
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param systemCode
|
|
|
|
|
+ * @author lipf
|
|
|
|
|
+ * @date 2026/7/24 14:10
|
|
|
|
|
+ */
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public Map<String, UserInfoWithPhone> queryUserInfo(String systemCode) {
|
|
|
|
|
+ List<UserInfoWithPhone> userInfos = baseMapper.queryUserInfos(systemCode);
|
|
|
|
|
+
|
|
|
|
|
+ Map<String, UserInfoWithPhone> res = userInfos.stream().filter(action -> StrUtil.isNotEmpty(action.getUserName()))
|
|
|
|
|
+ .collect(Collectors.toMap(UserInfoWithPhone::getUserName, Function.identity(), (oldItem, newItem) -> oldItem));
|
|
|
|
|
+ log.info("查询租户[{}]下有效的用户[{}]个", systemCode, CollUtil.size(res));
|
|
|
|
|
+ return res;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|