| | |
| | | import com.fzzy.igds.camera.data.ApiCameraResp; |
| | | import com.fzzy.igds.constant.CameraPlayType; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.data.GroupIndexData; |
| | | import com.fzzy.igds.data.IgdsBaseParam; |
| | | import com.fzzy.igds.data.PageResponse; |
| | | import com.fzzy.igds.data.PatrolSuperData; |
| | | import com.fzzy.igds.domain.Camera; |
| | | import com.fzzy.igds.domain.PatrolRecord; |
| | | import com.fzzy.igds.domain.*; |
| | | import com.fzzy.igds.response.BaseResponse; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.fzzy.igds.utils.SystemUtil; |
| | | import com.fzzy.common.manager.CommonManager; |
| | |
| | | * @return |
| | | */ |
| | | @RequestMapping("/quantity") |
| | | public String infrared( |
| | | @RequestParam(value = "type", required = false) String type, |
| | | ModelMap view) { |
| | | public String infrared(@RequestParam(value = "type", required = false) String type, |
| | | ModelMap view) { |
| | | |
| | | SysUser user = ContextUtil.getLoginUser(); |
| | | view.put(Constant.MODEL_KEY_LOGIN_USER, user); |
| | | |
| | | String deptId = ContextUtil.subDeptId(user); |
| | | view.put("deptId", deptId); |
| | | // List<InfraredCamera> listCamera = infraredManager.listCamera(deptId, user.getCompanyId()); |
| | | // |
| | | // if(null == listCamera){ |
| | | // listCamera = new ArrayList<>(); |
| | | // listCamera.add(new InfraredCamera()); |
| | | // } |
| | | // view.put("listCamera", listCamera); |
| | | |
| | | //查询库区下数量检测设备 |
| | | List<QuantityConf> listCamera = secManager.getQuantityConfByDeptId(deptId); |
| | | view.put("listCamera", listCamera); |
| | | |
| | | return prefix + "/quantity"; |
| | | } |
| | | |
| | | /** |
| | | * 查询记录信息 |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @RequestMapping("/quantity-list") |
| | | @ResponseBody |
| | | public PageResponse<List<Quantity>> quantityList(@RequestBody IgdsBaseParam param) { |
| | | return secManager.quantityList(param); |
| | | } |
| | | |
| | | /** |
| | | * 查询曲线图信息 |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @RequestMapping("/quantity-chart") |
| | | @ResponseBody |
| | | public PageResponse<GroupIndexData> getQuantityChart(@RequestBody IgdsBaseParam param) { |
| | | return secManager.getQuantityChart(param); |
| | | } |
| | | |
| | | /** |
| | | * 查询曲线图信息 |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @RequestMapping("/quantity-files") |
| | | @ResponseBody |
| | | public PageResponse<List<FileInfo>> getQuantityFiles(@RequestBody IgdsBaseParam param) { |
| | | return secManager.getQuantityFiles(param); |
| | | } |
| | | |
| | | /** |
| | | * 数量监测-开始检测 |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @RequestMapping("/check-single") |
| | | @ResponseBody |
| | | public BaseResponse checkSingle(@RequestBody IgdsBaseParam param) { |
| | | |
| | | return secManager.checkSingle(param); |
| | | } |
| | | |
| | | /** |
| | | * 数量监测-停止检测 |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @RequestMapping("/check-stop") |
| | | @ResponseBody |
| | | public BaseResponse checkStop(@RequestBody IgdsBaseParam param) { |
| | | return secManager.checkStop(param); |
| | | } |
| | | |
| | | /*------------------巡更轨迹页面------------------*/ |
| | | /** |