| | |
| | | import com.javaweb.cms.util.CmsConstants; |
| | | import com.javaweb.common.core.domain.AjaxResult; |
| | | import com.javaweb.common.utils.Arith; |
| | | import com.javaweb.common.utils.StringUtils; |
| | | import com.javaweb.geo.domain.Hole; |
| | | import com.javaweb.geo.domain.HoleMedia; |
| | | import com.javaweb.geo.domain.Project; |
| | | import com.javaweb.geo.domain.TubLog; |
| | | import com.javaweb.geo.enums.RecordType; |
| | | import com.javaweb.geo.mapper.HoleMapper; |
| | | import com.javaweb.geo.mapper.ProjectCameraMapper; |
| | | import com.javaweb.geo.mapper.TubLogMapper; |
| | | import com.javaweb.geo.service.IHoleMediaService; |
| | | import com.javaweb.geo.service.IHoleService; |
| | | import com.javaweb.geo.service.IProjectService; |
| | |
| | | |
| | | @Autowired |
| | | private IHoleMediaService holeMediaService; |
| | | |
| | | @Autowired |
| | | private TubLogMapper tubLogMapper; |
| | | |
| | | @Autowired |
| | | private ProjectCameraMapper projectCameraMapper; |
| | | |
| | | |
| | | private String getAdminIndex() { |
| | | return configService.selectConfigByKey(CmsConstants.KEY_ADMIN_INDEX); |
| | |
| | | |
| | | // 系统介绍 |
| | | @ResponseBody |
| | | @GetMapping("/system/project") |
| | | @GetMapping("/system/stat/project") |
| | | public AjaxResult project() { |
| | | AjaxResult ajaxResult = AjaxResult.success(); |
| | | List<Project> projects = projectService.selectProjectList(new Project()); |
| | |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @GetMapping("/system/totalProcess") |
| | | @GetMapping("/system/stat/totalProcess") |
| | | public AjaxResult totalProcess() { |
| | | AjaxResult ajaxResult = AjaxResult.success(); |
| | | Hole hole = holeService.selectHoleTotalProcess(); |
| | |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @GetMapping("/system/projectProcess") |
| | | @GetMapping("/system/stat/projectProcess") |
| | | public AjaxResult projectProcess() { |
| | | AjaxResult ajaxResult = AjaxResult.success(); |
| | | List<Hole> holes = holeService.selectHoleProjectProcess(); |
| | |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @GetMapping("/system/indexDataCount") |
| | | @GetMapping("/system/stat/indexDataCount") |
| | | public AjaxResult indexDataCount() { |
| | | IndexVo result = new IndexVo(); |
| | | //=============================查询场地数量=============================== |
| | |
| | | HoleMedia holeMedia = holeMediaService.selectHoleMediaNumber(); |
| | | result.setFileCount(holeMedia.getNumber()); |
| | | |
| | | Integer cameraCount = projectCameraMapper.count(); |
| | | result.setCameraCount(cameraCount); |
| | | return AjaxResult.success("查询成功",result); |
| | | } |
| | | |
| | | /** |
| | | * 统计材料的消耗 |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @GetMapping("/system/stat/tubLogData") |
| | | public AjaxResult tubLogData() { |
| | | AjaxResult ajaxResult = new AjaxResult(); |
| | | List<TubLog> tubLogs = tubLogMapper.countTubLogDate(null); |
| | | ajaxResult.put("tubLogs",tubLogs); |
| | | return ajaxResult; |
| | | } |
| | | |
| | | } |