| | |
| | | import com.fzzy.igds.data.PageResponse; |
| | | import com.fzzy.igds.data.PatrolSuperData; |
| | | 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 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); |
| | | } |
| | | |
| | | /*------------------料位计页面------------------*/ |
| | | /** |
| | | * 料位总览 |
| | | * |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | @RequestMapping("/height-all") |
| | | public String oilAll(@RequestParam(value = "deptId", required = false) String deptId, |
| | | ModelMap view) { |
| | | |
| | | SysUser user = ContextUtil.getLoginUser(); |
| | | view.put(Constant.MODEL_KEY_LOGIN_USER, user); |
| | | |
| | | // 获取当前用户所在的分库名称 |
| | | if(StringUtils.isBlank(deptId)){ |
| | | deptId = ContextUtil.subDeptId(user); |
| | | } |
| | | view.put("deptId", deptId); |
| | | |
| | | // 获取当前部门下所有油罐列表信息 |
| | | List<Quantity> heightList = secManager.getHeightList(ContextUtil.subDeptId(user)); |
| | | view.put(Constant.MODEL_KEY_DEPOT_LIST, heightList); |
| | | |
| | | view.put("bizType", "quantity"); |
| | | |
| | | return prefix + "/height-all"; |
| | | } |
| | | |
| | | /*------------------巡更轨迹页面------------------*/ |
| | | /** |