| | |
| | | private EventInfoService eventInfoService; |
| | | @Resource |
| | | private SnapRecordService snapRecordService; |
| | | @Resource |
| | | private SecCameraService cameraService; |
| | | |
| | | /** |
| | | * 获取省及下属市州集合 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取组织下所有库区信息 |
| | | * 获取用户下所有库区信息 |
| | | * |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | public List<Dept> getAllDept(String companyId) { |
| | | return deptService.listDept(null, companyId, null); |
| | | public List<Dept> getDeptList() { |
| | | return deptService.getDeptByUserType(null); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | List<GroupDeptData> list = new ArrayList<>(); |
| | | GroupDeptData deptData; |
| | | List<Dept> deptList = deptService.getDeptData(); |
| | | List<Dept> deptList = deptService.getDeptByUserType(null); |
| | | if (null != deptList && !deptList.isEmpty()) { |
| | | List<Depot> depotList; |
| | | for (Dept dept : deptList) { |
| | |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * 获取库区下监控信息 |
| | | * @param param |
| | | * @return |
| | | */ |
| | | public PageResponse<List<Camera>> cameraList(IgdsBaseParam param) { |
| | | |
| | | if(StringUtils.isBlank(param.getDeptId())){ |
| | | return new PageResponse<>(RespCodeEnum.CODE_2000, null); |
| | | } |
| | | |
| | | if (StringUtils.isBlank(param.getCompanyId())){ |
| | | param.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | |
| | | List<Camera> listCamera = cameraService.getCameraByDeptId(param.getCompanyId(), param.getDeptId()); |
| | | |
| | | return new PageResponse<>(RespCodeEnum.CODE_0000, listCamera); |
| | | } |
| | | |
| | | /** |
| | | * 大屏首页统计信息:企业数、库区数、仓库数、质押仓数、散粮及成品粮数、分品种库存数 |
| | |
| | | indexData.setCompanyNum(companyNum); |
| | | |
| | | //库区数 |
| | | List<Dept> deptList = deptService.listDept(null, param.getCompanyId(), null); |
| | | List<Dept> deptList = deptService.getDeptByUserType(null); |
| | | if (null != deptList) { |
| | | indexData.setDeptNum(deptList.size()); |
| | | } |
| | |
| | | |
| | | List<GroupDeptData> list = new ArrayList<>(); |
| | | GroupDeptData deptData; |
| | | List<Dept> deptList = deptService.getDeptData(); |
| | | List<Dept> deptList = deptService.getDeptByUserType(null); |
| | | if (null != deptList && !deptList.isEmpty()) { |
| | | List<Depot> depotList; |
| | | for (Dept dept : deptList) { |
| | |
| | | namePieChart.put(dicArea.getCode(), dicArea.getName()); |
| | | } |
| | | } |
| | | List<Dept> deptList = deptService.getDeptData(); |
| | | List<Dept> deptList = deptService.getDeptByUserType(null); |
| | | if (null != deptList && !deptList.isEmpty()) { |
| | | //库区总数 |
| | | groupGisData.setDeptNum(deptList.size()); |