|
@@ -17,6 +17,8 @@ import com.fs.common.core.domain.R;
|
|
import com.fs.common.core.domain.ResponseResult;
|
|
import com.fs.common.core.domain.ResponseResult;
|
|
import com.fs.common.core.page.TableDataInfo;
|
|
import com.fs.common.core.page.TableDataInfo;
|
|
import com.fs.common.utils.DateUtils;
|
|
import com.fs.common.utils.DateUtils;
|
|
|
|
+import com.fs.common.utils.DictUtils;
|
|
|
|
+import com.fs.common.utils.ParseUtils;
|
|
import com.fs.common.utils.StringUtils;
|
|
import com.fs.common.utils.StringUtils;
|
|
import com.fs.company.cache.ICompanyTagCacheService;
|
|
import com.fs.company.cache.ICompanyTagCacheService;
|
|
import com.fs.company.cache.ICompanyUserCacheService;
|
|
import com.fs.company.cache.ICompanyUserCacheService;
|
|
@@ -59,6 +61,7 @@ import com.fs.store.vo.h5.*;
|
|
import com.fs.system.service.ISysConfigService;
|
|
import com.fs.system.service.ISysConfigService;
|
|
import com.fs.watch.domain.WatchUser;
|
|
import com.fs.watch.domain.WatchUser;
|
|
import com.fs.watch.service.WatchUserService;
|
|
import com.fs.watch.service.WatchUserService;
|
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageInfo;
|
|
import com.github.pagehelper.PageInfo;
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
import org.apache.http.util.Asserts;
|
|
import org.apache.http.util.Asserts;
|
|
@@ -587,6 +590,7 @@ public class FsUserServiceImpl implements IFsUserService
|
|
}
|
|
}
|
|
|
|
|
|
List<FsUserPageListVO> fsUserPageListVOS = fsUserMapper.selectFsUserPageListNew(param);
|
|
List<FsUserPageListVO> fsUserPageListVOS = fsUserMapper.selectFsUserPageListNew(param);
|
|
|
|
+ Map<Long, CompanyTag> tagMap = companyTagCacheService.queryAllTagMap();
|
|
for (FsUserPageListVO item : fsUserPageListVOS) {
|
|
for (FsUserPageListVO item : fsUserPageListVOS) {
|
|
if(item.getCompanyUserId() != null) {
|
|
if(item.getCompanyUserId() != null) {
|
|
String companyUserName = companyUserCacheService.selectCompanyUserNameUserById(item.getCompanyUserId());
|
|
String companyUserName = companyUserCacheService.selectCompanyUserNameUserById(item.getCompanyUserId());
|
|
@@ -594,6 +598,15 @@ public class FsUserServiceImpl implements IFsUserService
|
|
item.setCompanyUserNickName(companyUserName);
|
|
item.setCompanyUserNickName(companyUserName);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if(item.getPhone() != null) {
|
|
|
|
+ item.setPhone(ParseUtils.parsePhone(item.getPhone()));
|
|
|
|
+ }
|
|
|
|
+ if(item.getStatus() != null) {
|
|
|
|
+ String userStatus = DictUtils.getDictLabel("user_status", String.valueOf(item.getStatus()));
|
|
|
|
+ if(StringUtils.isNotBlank(userStatus)){
|
|
|
|
+ item.setStatusText(userStatus);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
if(item.getUserId() != null) {
|
|
if(item.getUserId() != null) {
|
|
FsUserCourseCount byUserId = fsUserCourseCountCacheService.findByUserId(item.getUserId());
|
|
FsUserCourseCount byUserId = fsUserCourseCountCacheService.findByUserId(item.getUserId());
|
|
if(byUserId != null) {
|
|
if(byUserId != null) {
|
|
@@ -607,17 +620,18 @@ public class FsUserServiceImpl implements IFsUserService
|
|
item.setStopWatchDays(byUserId.getStopWatchDays());
|
|
item.setStopWatchDays(byUserId.getStopWatchDays());
|
|
item.setCompleteWatchDate(byUserId.getCompleteWatchDate());
|
|
item.setCompleteWatchDate(byUserId.getCompleteWatchDate());
|
|
}
|
|
}
|
|
-
|
|
|
|
- String userTagByUserId = companyTagCacheService.findUserTagByUserId(item.getUserId());
|
|
|
|
|
|
+ String userTagByUserId = companyTagCacheService
|
|
|
|
+ .findUserTagByUserId(item.getUserId(),item.getCompanyUserId());
|
|
if(StringUtils.isNotEmpty(userTagByUserId)) {
|
|
if(StringUtils.isNotEmpty(userTagByUserId)) {
|
|
String[] split = userTagByUserId.split(",");
|
|
String[] split = userTagByUserId.split(",");
|
|
- Map<Long, String> tagMap = companyTagCacheService.queryAllTagMap();
|
|
|
|
Set<String> tagNames = new HashSet<>();
|
|
Set<String> tagNames = new HashSet<>();
|
|
for (String tag : split) {
|
|
for (String tag : split) {
|
|
- if(tag != null) {
|
|
|
|
|
|
+ if(StringUtils.isNotBlank(tag)) {
|
|
Long tagL = Long.parseLong(tag);
|
|
Long tagL = Long.parseLong(tag);
|
|
- String tagName = tagMap.get(tagL);
|
|
|
|
- tagNames.add(tagName);
|
|
|
|
|
|
+ CompanyTag companyTag = tagMap.get(tagL);
|
|
|
|
+ if(companyTag != null) {
|
|
|
|
+ tagNames.add(companyTag.getTag());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
item.setTagIds(userTagByUserId);
|
|
item.setTagIds(userTagByUserId);
|
|
@@ -625,10 +639,10 @@ public class FsUserServiceImpl implements IFsUserService
|
|
}
|
|
}
|
|
|
|
|
|
// 是否宠粉
|
|
// 是否宠粉
|
|
- Integer isRepeat = qwExternalContactCacheService.selectQwIsRepeat(item.getUserId());
|
|
|
|
- if(isRepeat != null) {
|
|
|
|
- item.setIsRepeat(isRepeat);
|
|
|
|
- }
|
|
|
|
|
|
+// Integer isRepeat = qwExternalContactCacheService.selectQwIsRepeat(item.getUserId());
|
|
|
|
+// if(isRepeat != null) {
|
|
|
|
+// item.setIsRepeat(isRepeat);
|
|
|
|
+// }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|