no message
This commit is contained in:
parent
63125fa2c5
commit
353485ee04
|
@ -671,7 +671,7 @@ public class Controller {
|
|||
*/
|
||||
@GetMapping("/saveOrgenization")
|
||||
public Result saveOrgenization() throws Exception{
|
||||
List<JSONObject> orgenizationByPage = monitorService.getOrgenization(new ArrayList<JSONObject>());
|
||||
List<JSONObject> orgenizationByPage = monitorService.getOrgenization(new ArrayList<JSONObject>(10000));
|
||||
List<Map> maps = JSONObject.parseArray(JSONObject.toJSONString(orgenizationByPage), Map.class);
|
||||
if(maps.size() > 0){
|
||||
List<List<Map>> lists = Lists.partition(maps,100);
|
||||
|
@ -693,6 +693,15 @@ public class Controller {
|
|||
return Result.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 事件版的保存区域组织信息
|
||||
*/
|
||||
@GetMapping("/saveOrgenizationEvent")
|
||||
public Result saveOrgenizationEvent() throws Exception{
|
||||
monitorService.getAndSaveOrgenization();
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存通道信息多线程版
|
||||
* @return
|
||||
|
@ -700,13 +709,32 @@ public class Controller {
|
|||
@GetMapping("saveChannelInfoAsync")
|
||||
public Result saveChannelInfoAsync() throws Exception{
|
||||
monitorService.saveChannelInfoAsync();
|
||||
return Result.success("成功收到指令,请耐心等待");
|
||||
return Result.success();
|
||||
}
|
||||
/******************************2022/07/13 ytl修改视频资源 end********************************************/
|
||||
|
||||
/**
|
||||
* 07-25增加的判断视频资源是否在库中,
|
||||
* 以后可以删除,直接调用cameraChannelServicecheckCameraIfExists即可
|
||||
* @param list
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/checkCameraIfExists")
|
||||
public Result checkCameraIfExists(@RequestParam List<String> list){
|
||||
Result result = cameraChannelService.checkCameraIfExists(list);
|
||||
return result;
|
||||
}
|
||||
|
||||
// //以下是7月26号的测试用的
|
||||
// @GetMapping("/getCameraChannelByPID")
|
||||
// public Result getCameraChannelByPID(@RequestParam String pid) throws Exception{
|
||||
// List<Map> channelInfo = monitorService.getChannelInfo(pid);
|
||||
// return Result.success(channelInfo);
|
||||
// }
|
||||
//
|
||||
// @GetMapping("/getOrganization")
|
||||
// public Result getOrganization() throws Exception{
|
||||
// List<JSONObject> orgenization = monitorService.getOrgenization(new ArrayList<>());
|
||||
// return Result.success(orgenization);
|
||||
// }
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue