no message

This commit is contained in:
yitonglei 2022-07-29 11:30:09 +08:00
parent 63125fa2c5
commit 353485ee04
1 changed files with 32 additions and 4 deletions

View File

@ -671,7 +671,7 @@ public class Controller {
*/ */
@GetMapping("/saveOrgenization") @GetMapping("/saveOrgenization")
public Result saveOrgenization() throws Exception{ 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); List<Map> maps = JSONObject.parseArray(JSONObject.toJSONString(orgenizationByPage), Map.class);
if(maps.size() > 0){ if(maps.size() > 0){
List<List<Map>> lists = Lists.partition(maps,100); List<List<Map>> lists = Lists.partition(maps,100);
@ -693,20 +693,48 @@ public class Controller {
return Result.success(); return Result.success();
} }
/**
* 事件版的保存区域组织信息
*/
@GetMapping("/saveOrgenizationEvent")
public Result saveOrgenizationEvent() throws Exception{
monitorService.getAndSaveOrgenization();
return Result.success();
}
/** /**
* 保存通道信息多线程版 * 保存通道信息多线程版
* @return * @return
*/ */
@GetMapping("saveChannelInfoAsync") @GetMapping("saveChannelInfoAsync")
public Result saveChannelInfoAsync() throws Exception{ public Result saveChannelInfoAsync() throws Exception{
monitorService.saveChannelInfoAsync(); monitorService.saveChannelInfoAsync();
return Result.success("成功收到指令,请耐心等待"); return Result.success();
} }
/******************************2022/07/13 ytl修改视频资源 end********************************************/ /******************************2022/07/13 ytl修改视频资源 end********************************************/
/**
* 07-25增加的判断视频资源是否在库中
* 以后可以删除直接调用cameraChannelServicecheckCameraIfExists即可
* @param list
* @return
*/
@GetMapping("/checkCameraIfExists") @GetMapping("/checkCameraIfExists")
public Result checkCameraIfExists(@RequestParam List<String> list){ public Result checkCameraIfExists(@RequestParam List<String> list){
Result result = cameraChannelService.checkCameraIfExists(list); Result result = cameraChannelService.checkCameraIfExists(list);
return result; 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);
// }
} }