|
@@ -23,6 +23,7 @@ import com.fdkankan.ucenter.vo.response.CameraAppVo;
|
|
|
import com.fdkankan.ucenter.vo.response.CameraSpaceVo;
|
|
|
import com.fdkankan.ucenter.vo.response.CameraVo;
|
|
|
import com.fdkankan.ucenter.vo.response.GroupByCount;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.joda.time.DateTime;
|
|
|
import org.joda.time.Days;
|
|
@@ -42,6 +43,7 @@ import java.util.stream.Stream;
|
|
|
* @since 2022-07-04
|
|
|
*/
|
|
|
@Service
|
|
|
+@Slf4j
|
|
|
public class CameraServiceImpl extends ServiceImpl<ICameraMapper, Camera> implements ICameraService {
|
|
|
|
|
|
@Autowired
|
|
@@ -174,12 +176,13 @@ public class CameraServiceImpl extends ServiceImpl<ICameraMapper, Camera> implem
|
|
|
}
|
|
|
for (CameraVo responseCamera : page.getRecords()) {
|
|
|
|
|
|
- List<ScenePro> proList = sceneProService.getListByUserId(user.getId());
|
|
|
- List<ScenePlus> plusList = scenePlusService.getListByUserId(user.getId());
|
|
|
+ List<ScenePro> proList = sceneProService.getListByUserId(user.getId(),responseCamera.getId());
|
|
|
+ List<ScenePlus> plusList = scenePlusService.getListByUserId(user.getId(),responseCamera.getId());
|
|
|
Set<String> numList = proList.stream().map(ScenePro::getNum).collect(Collectors.toSet());
|
|
|
Set<String> numList2 = plusList.stream().map(ScenePlus::getNum).collect(Collectors.toSet());
|
|
|
numList.addAll(numList2);
|
|
|
responseCamera.setSceneList(new ArrayList<>(numList));
|
|
|
+ log.info("listNew---深时访问返回----camera:{},numList:{}",responseCamera.getSnCode(),numList);
|
|
|
|
|
|
responseCamera.setCameraType(param.getCameraType());
|
|
|
if (responseCamera.getType() != 0){
|