|
@@ -468,15 +468,25 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
return this.count(wrapper) + count;
|
|
|
}
|
|
|
@Override
|
|
|
- public Long getSsObjCount(List<String> asList, String startTime) {
|
|
|
+ public Long getSsObjCount(List<String> asList, String startTime,Long userId) {
|
|
|
LambdaQueryWrapper<ScenePro> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.in(ScenePro::getSceneSource,asList);
|
|
|
wrapper.eq(ScenePro::getIsUpgrade,0);
|
|
|
- wrapper.lt(ScenePro::getCreateTime,startTime);
|
|
|
+ if(StringUtils.isNotBlank(startTime)){
|
|
|
+ wrapper.lt(ScenePro::getCreateTime,startTime);
|
|
|
+ }
|
|
|
+ if(userId != null){
|
|
|
+ wrapper.eq(ScenePro::getUserId,userId);
|
|
|
+ }
|
|
|
wrapper.eq(ScenePro::getIsObj,1);
|
|
|
LambdaQueryWrapper<ScenePlus> wrapper2 = new LambdaQueryWrapper<>();
|
|
|
wrapper2.in(ScenePlus::getSceneSource,asList);
|
|
|
- wrapper2.lt(ScenePlus::getCreateTime,startTime);
|
|
|
+ if(StringUtils.isNotBlank(startTime)){
|
|
|
+ wrapper2.lt(ScenePlus::getCreateTime,startTime);
|
|
|
+ }
|
|
|
+ if(userId != null){
|
|
|
+ wrapper2.eq(ScenePlus::getUserId,userId);
|
|
|
+ }
|
|
|
List<ScenePlus> list = scenePlusService.list(wrapper2);
|
|
|
List<Long> plusIds = list.stream().map(ScenePlus::getId).collect(Collectors.toList());
|
|
|
long count = 0L;
|