|
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.fdkankan.manage.common.CacheUtil;
|
|
|
import com.fdkankan.manage.common.PageInfo;
|
|
|
import com.fdkankan.manage.common.Result;
|
|
|
+import com.fdkankan.manage.common.ResultCode;
|
|
|
import com.fdkankan.manage.entity.Camera;
|
|
|
import com.fdkankan.manage.entity.CameraDetail;
|
|
|
import com.fdkankan.manage.entity.User;
|
|
@@ -281,4 +282,44 @@ public class LaserService {
|
|
|
}
|
|
|
return null ;
|
|
|
}
|
|
|
+
|
|
|
+ public HashMap<String, JSONObject> list(List<String> sceneNumList,Integer sceneSource) {
|
|
|
+ LaserSceneParam newParam = new LaserSceneParam();
|
|
|
+ newParam.setPageNum(1);
|
|
|
+ newParam.setPageSize(sceneNumList.size());
|
|
|
+ newParam.setSceneCodes(sceneNumList);
|
|
|
+ newParam.setSceneSource(sceneSource);
|
|
|
+ return this.list(newParam);
|
|
|
+ }
|
|
|
+
|
|
|
+ public HashMap<String, JSONObject> list(String sceneName,Integer sceneSource) {
|
|
|
+ LaserSceneParam newParam = new LaserSceneParam();
|
|
|
+ newParam.setPageNum(1);
|
|
|
+ newParam.setPageSize(9999);
|
|
|
+ newParam.setTitle(sceneName);
|
|
|
+ newParam.setSceneSource(sceneSource);
|
|
|
+ return this.list(newParam);
|
|
|
+ }
|
|
|
+
|
|
|
+ public HashMap<String, JSONObject> list(LaserSceneParam newParam) {
|
|
|
+ HashMap<String, JSONObject> map = new HashMap<>();
|
|
|
+ try {
|
|
|
+ FdkkResponse fdkkResponse = laserClient.sceneList(newParam);
|
|
|
+ JSONObject jsonObject = fdkkResponse.getData();
|
|
|
+ if(jsonObject == null){
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+ JSONArray list = jsonObject.getJSONArray("list");
|
|
|
+
|
|
|
+ for (Object o : list) {
|
|
|
+ JSONObject obj = (JSONObject) o;
|
|
|
+ map.put(obj.getString("num"),obj);
|
|
|
+ }
|
|
|
+ }catch (Exception e){
|
|
|
+ log.info("激光系统访问失败:{}",e);
|
|
|
+ throw new BusinessException(ResultCode.LASER_VIEW_ERROR);
|
|
|
+ }
|
|
|
+
|
|
|
+ return map;
|
|
|
+ }
|
|
|
}
|