|
@@ -449,12 +449,11 @@ public class FsUserServiceImpl implements IFsUserService
|
|
|
public TableDataInfo selectFsUserPageListNew(FsUserPageListParam param) {
|
|
|
// 找出下级销售
|
|
|
String companyUserId = param.getCompanyUserId();
|
|
|
- if(companyUserId == null) {
|
|
|
- throw new IllegalArgumentException("当前销售不存在!");
|
|
|
+ if(companyUserId != null) {
|
|
|
+ Long companyUser = Long.parseLong(companyUserId);
|
|
|
+ Set<Long> userIds = companyUserCacheService.selectUserAllCompanyUserId(companyUser);
|
|
|
+ param.setCompanyUserIds(userIds);
|
|
|
}
|
|
|
- Long companyUser = Long.parseLong(companyUserId);
|
|
|
- Set<Long> userIds = companyUserCacheService.selectUserAllCompanyUserId(companyUser);
|
|
|
- param.setCompanyUserIds(userIds);
|
|
|
|
|
|
List<FsUserPageListVO> fsUserPageListVOS = fsUserMapper.selectFsUserPageListNew(param);
|
|
|
for (FsUserPageListVO item : fsUserPageListVOS) {
|
|
@@ -479,7 +478,20 @@ public class FsUserServiceImpl implements IFsUserService
|
|
|
}
|
|
|
|
|
|
String userTagByUserId = companyTagCacheService.findUserTagByUserId(item.getUserId());
|
|
|
- item.setTagIds(userTagByUserId);
|
|
|
+ if(StringUtils.isNotEmpty(userTagByUserId)) {
|
|
|
+ String[] split = userTagByUserId.split(",");
|
|
|
+ Map<Long, String> tagMap = companyTagCacheService.queryAllTagMap();
|
|
|
+ Set<String> tagNames = new HashSet<>();
|
|
|
+ for (String tag : split) {
|
|
|
+ if(tag != null) {
|
|
|
+ Long tagL = Long.parseLong(tag);
|
|
|
+ String tagName = tagMap.get(tagL);
|
|
|
+ tagNames.add(tagName);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ item.setTagIds(userTagByUserId);
|
|
|
+ item.setTag(String.join(",",tagNames));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|