|
@@ -111,11 +111,7 @@ public class SceneService implements ISceneService {
|
|
|
param.setSnCodes(snCodes);
|
|
|
}
|
|
|
if(param.getCaseId() !=null){
|
|
|
- CaseEntity caseEntity = caseService.getById(param.getCaseId());
|
|
|
- String deptId = caseEntity.getDeptId();
|
|
|
- if(caseEntity.getType() ==1){
|
|
|
- deptId = tmProjectService.getById(caseEntity.getTmProjectId()).getDeptId();
|
|
|
- }
|
|
|
+ String deptId = caseService.getDeptId(param.getCaseId());
|
|
|
List<TmCamera> tmCameras = tmCameraService.getByDeptIds(Arrays.asList(deptId));
|
|
|
List<String> snCodes = param.getSnCodes();
|
|
|
List<String> snCodes1 = tmCameras.stream().map(TmCamera::getCameraSn).collect(Collectors.toList());
|