|
@@ -22,6 +22,7 @@ import com.ozs.common.utils.http.HttpUtils;
|
|
|
import com.ozs.common.utils.poi.ExcelUtil;
|
|
|
import com.ozs.common.utils.stateSecrets.SM4Utils;
|
|
|
import com.ozs.entity.*;
|
|
|
+import com.ozs.entity.response.BaseCameraManagementResponse;
|
|
|
import com.ozs.entity.vo.*;
|
|
|
import com.ozs.framework.config.ServerConfig;
|
|
|
import com.ozs.service.*;
|
|
@@ -1054,5 +1055,32 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
boolean save = terminalHeartbeatLogService.save(terminalHeartbeatLog);
|
|
|
return AjaxResult.success(save);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 流媒体页面接口
|
|
|
+ * @param list
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping("/getCameraManagementList")
|
|
|
+ public AjaxResult getCameraManagementList(@RequestBody List<String> list) {
|
|
|
+ List<BaseCameraManagementResponse> responseList=new ArrayList<>();
|
|
|
+ for (String name : list) {
|
|
|
+ // 寻找第一个斜杠的位置
|
|
|
+ int slashIndex = name.indexOf("/");
|
|
|
+ if (slashIndex != -1) {
|
|
|
+ BaseCameraManagementResponse response=new BaseCameraManagementResponse();
|
|
|
+ String result = name.substring(0, slashIndex);
|
|
|
+ BaseCameraManagement cameraManagement = baseCameraManagementService.getOne(new LambdaQueryWrapper<BaseCameraManagement>()
|
|
|
+ .eq(BaseCameraManagement::getCameraCode, result));
|
|
|
+ response.setCameraCode(cameraManagement.getCameraCode());
|
|
|
+ response.setInstallMile(cameraManagement.getInstallMile());
|
|
|
+ response.setName(name);
|
|
|
+ responseList.add(response);
|
|
|
+ } else {
|
|
|
+ return AjaxResult.error("未找到斜杠符号");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return AjaxResult.success(responseList);
|
|
|
+ }
|
|
|
}
|
|
|
|