|
@@ -533,11 +533,11 @@ public class FsUserServiceImpl implements IFsUserService
|
|
public TableDataInfo selectFsUserPageListNew(FsUserPageListParam param) {
|
|
public TableDataInfo selectFsUserPageListNew(FsUserPageListParam param) {
|
|
// 找出下级销售
|
|
// 找出下级销售
|
|
String companyUserId = param.getCompanyUserId();
|
|
String companyUserId = param.getCompanyUserId();
|
|
- if(companyUserId != null) {
|
|
|
|
|
|
+ if(StringUtils.isNotBlank(companyUserId)) {
|
|
Long companyUser = Long.parseLong(companyUserId);
|
|
Long companyUser = Long.parseLong(companyUserId);
|
|
Set<Long> userIds = companyUserCacheService.selectUserAllCompanyUserId(companyUser);
|
|
Set<Long> userIds = companyUserCacheService.selectUserAllCompanyUserId(companyUser);
|
|
if (userIds != null || userIds.size() <= 1) {
|
|
if (userIds != null || userIds.size() <= 1) {
|
|
- if (param.getIsAdmin()) {
|
|
|
|
|
|
+ if (param.getIsAdmin() != null && param.getIsAdmin()) {
|
|
List<CompanyUser> companyUsers = companyUserMapper.selectCompanyUserByCompanyId(param.getCompanyId());
|
|
List<CompanyUser> companyUsers = companyUserMapper.selectCompanyUserByCompanyId(param.getCompanyId());
|
|
userIds = companyUsers.stream().map(CompanyUser::getUserId).collect(Collectors.toSet());
|
|
userIds = companyUsers.stream().map(CompanyUser::getUserId).collect(Collectors.toSet());
|
|
}
|
|
}
|
|
@@ -549,7 +549,10 @@ public class FsUserServiceImpl implements IFsUserService
|
|
Map<Long, CompanyTag> tagMap = companyTagCacheService.queryAllTagMap();
|
|
Map<Long, CompanyTag> tagMap = companyTagCacheService.queryAllTagMap();
|
|
//获取会员的最新的看课状态和最后看课时间
|
|
//获取会员的最新的看课状态和最后看课时间
|
|
Set<Long> userIds = fsUserPageListVOS.stream().map(FsUserPageListVO::getUserId).collect(Collectors.toSet());
|
|
Set<Long> userIds = fsUserPageListVOS.stream().map(FsUserPageListVO::getUserId).collect(Collectors.toSet());
|
|
- List<FsUserLastCount> fsUserCourseCounts = fsUserCourseCountMapper.selectUserLastCount(userIds);
|
|
|
|
|
|
+ List<FsUserLastCount> fsUserCourseCounts = new ArrayList<>();
|
|
|
|
+ if (userIds.size() > 0) {
|
|
|
|
+ fsUserCourseCounts = fsUserCourseCountMapper.selectUserLastCount(userIds);
|
|
|
|
+ }
|
|
Map<Long, FsUserLastCount> countMap = fsUserCourseCounts.stream().collect(Collectors.toMap(FsUserLastCount::getUserId, Function.identity()));
|
|
Map<Long, FsUserLastCount> countMap = fsUserCourseCounts.stream().collect(Collectors.toMap(FsUserLastCount::getUserId, Function.identity()));
|
|
|
|
|
|
for (FsUserPageListVO item : fsUserPageListVOS) {
|
|
for (FsUserPageListVO item : fsUserPageListVOS) {
|