|
@@ -66,7 +66,12 @@ public class AppCameraService {
|
|
if(user == null){
|
|
if(user == null){
|
|
throw new BusinessException(AppConstant.FAILURE_CODE_4007, AppConstant.FAILURE_MSG_4007);
|
|
throw new BusinessException(AppConstant.FAILURE_CODE_4007, AppConstant.FAILURE_MSG_4007);
|
|
}
|
|
}
|
|
- Camera camera = cameraService.getBySnCode(snCode);
|
|
|
|
|
|
+ Camera camera = null;
|
|
|
|
+ if(snCode.contains("_")){
|
|
|
|
+ camera = cameraService.getByWfiName(snCode);
|
|
|
|
+ }else {
|
|
|
|
+ camera = cameraService.getBySnCode(snCode);
|
|
|
|
+ }
|
|
if(camera == null){
|
|
if(camera == null){
|
|
throw new BusinessException(AppConstant.FAILURE_CODE_4010, AppConstant.FAILURE_MSG_4010);
|
|
throw new BusinessException(AppConstant.FAILURE_CODE_4010, AppConstant.FAILURE_MSG_4010);
|
|
}
|
|
}
|