|
@@ -263,13 +263,20 @@ public class QwWatchLogServiceImpl extends ServiceImpl<QwWatchLogMapper, QwWatch
|
|
|
@Override
|
|
|
public TableDataInfo selectQwWatchLogAllStatisticsListVONew(QwWatchLogStatisticsListParam param) {
|
|
|
// 获取当前公司下的所有销售
|
|
|
- List<CompanyUser> companyUsers = companyUserMapper.selectCompanyUserByCompanyId(param.getCompanyId());
|
|
|
+ List<Long> userIds;
|
|
|
+ if(param.getCompanyUserId() == null){
|
|
|
+ List<CompanyUser> companyUsers = companyUserMapper.selectCompanyUserByCompanyId(param.getCompanyId());
|
|
|
|
|
|
- List<QwWatchLogAllStatisticsListVO> list = new ArrayList<>();
|
|
|
+ userIds = companyUsers.stream()
|
|
|
+ .map(CompanyUser::getUserId)
|
|
|
+ .filter(Objects::nonNull)
|
|
|
+ .collect(Collectors.toList());
|
|
|
+ } else {
|
|
|
+ userIds = new ArrayList<>();
|
|
|
+ userIds.add(param.getCompanyUserId());
|
|
|
+ }
|
|
|
|
|
|
- List<Long> userIds = companyUsers.stream().filter(e -> e.getUserId() != null)
|
|
|
- .map(e -> e.getUserId())
|
|
|
- .collect(Collectors.toList());
|
|
|
+ List<QwWatchLogAllStatisticsListVO> list = new ArrayList<>();
|
|
|
|
|
|
List<QwWatchLogAllStatisticsListVO> vos = qwWatchLogMapper
|
|
|
.selectQwWatchLogAllStatisticsListVONew(userIds, param.getSTime(), param.getETime(),
|