123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- package com.fdkankan.manage.controller;
- import com.fdkankan.common.response.ResultData;
- import com.fdkankan.manage.service.IDataService;
- import com.fdkankan.manage.service.ISysRoleService;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestParam;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * 统计分析
- */
- @RestController
- @RequestMapping("/service/manage/data")
- public class DataController {
- @Autowired
- IDataService dataService;
- @Autowired
- ISysRoleService sysRoleService;
- /**
- *统计新增用户数
- * @param type 0:日 ,1:月,2:年
- */
- @GetMapping("/user")
- public ResultData userData(@RequestParam(required = false,defaultValue = "0") Integer type){
- return ResultData.ok(dataService.userData(type));
- }
- /**
- *统计相机数据
- */
- @GetMapping("/camera")
- public ResultData camera(){
- return ResultData.ok(dataService.cameraData());
- }
- /**
- *统计权益订单
- * @param type 0:日 ,1:月,2:年
- */
- @GetMapping("/increment")
- public ResultData incrementData(@RequestParam(required = false,defaultValue = "0") Integer type){
- return ResultData.ok(dataService.incrementData(type));
- }
- /**
- *统计下载订单
- * @param type 0:日 ,1:月,2:年
- */
- @GetMapping("/down")
- public ResultData downData(@RequestParam(required = false,defaultValue = "0") Integer type){
- return ResultData.ok(dataService.downData(type));
- }
- /**
- *统计场景数量订单
- * @param type 0:日 ,1:月,2:年
- * @param cameraType 0 看看,1看见,2深时
- */
- @GetMapping("/sceneNum")
- public ResultData sceneNum(@RequestParam(required = false,defaultValue = "0") Integer type,
- @RequestParam(required = false,defaultValue = "0") Integer cameraType){
- return ResultData.ok(dataService.sceneNum(type,cameraType));
- }
- }
|