|
@@ -403,7 +403,7 @@ public class QwWatchLogServiceImpl extends ServiceImpl<QwWatchLogMapper, QwWatch
|
|
|
public TableDataInfo selectQwWatchLogAllStatisticsListVONew(QwWatchLogStatisticsListParam param) {
|
|
public TableDataInfo selectQwWatchLogAllStatisticsListVONew(QwWatchLogStatisticsListParam param) {
|
|
|
// 获取当前公司下的所有销售
|
|
// 获取当前公司下的所有销售
|
|
|
List<Long> userIds;
|
|
List<Long> userIds;
|
|
|
- if(param.getCompanyUserId() == null){
|
|
|
|
|
|
|
+ if(param.getCompanyUserId() == null && (param.getUserIds() == null || param.getUserIds().isEmpty())){
|
|
|
List<CompanyUser> companyUsers = companyUserMapper.selectCompanyUserByCompanyId(param.getCompanyId());
|
|
List<CompanyUser> companyUsers = companyUserMapper.selectCompanyUserByCompanyId(param.getCompanyId());
|
|
|
if(CollectionUtils.isEmpty(companyUsers)){
|
|
if(CollectionUtils.isEmpty(companyUsers)){
|
|
|
throw new CustomException("该公司下面没有任何销售!");
|
|
throw new CustomException("该公司下面没有任何销售!");
|
|
@@ -412,7 +412,9 @@ public class QwWatchLogServiceImpl extends ServiceImpl<QwWatchLogMapper, QwWatch
|
|
|
.map(CompanyUser::getUserId)
|
|
.map(CompanyUser::getUserId)
|
|
|
.filter(Objects::nonNull)
|
|
.filter(Objects::nonNull)
|
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
|
- } else {
|
|
|
|
|
|
|
+ } else if((param.getUserIds() != null && !param.getUserIds().isEmpty())){
|
|
|
|
|
+ userIds = param.getUserIds().stream().map(Long::valueOf).collect(Collectors.toList());
|
|
|
|
|
+ }else{
|
|
|
userIds = new ArrayList<>();
|
|
userIds = new ArrayList<>();
|
|
|
userIds.add(param.getCompanyUserId());
|
|
userIds.add(param.getCompanyUserId());
|
|
|
}
|
|
}
|