12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package com.huike.web.controller.report;
- import com.huike.report.domain.vo.IndexVo;
- 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;
- import com.huike.common.core.domain.AjaxResult;
- import com.huike.report.service.IReportService;
- @RestController
- @RequestMapping("/index")
- public class IndexController {
- @Autowired
- private IReportService reportService;
- /**
- * 首页--基础数据统计
- * @param beginCreateTime
- * @param endCreateTime
- * @return
- */
- @GetMapping("/getBaseInfo")
- public AjaxResult getBaseInfo(@RequestParam("beginCreateTime") String beginCreateTime,
- @RequestParam("endCreateTime") String endCreateTime){
- return AjaxResult.success(reportService.getBaseInfo(beginCreateTime,endCreateTime));
- }
- /**
- * 今日数据统计
- */
- @GetMapping("/getTodayInfo")
- public AjaxResult getTodayInfo(){
- return AjaxResult.success("操作成功",reportService.getTodayInfo());
- }
- /**
- *
- */
- @GetMapping("/getTodoInfo")
- public AjaxResult getTodoInfo(String beginCreateTime,String endCreateTime){
- return AjaxResult.success("操作成功",reportService.getTodoInfo(beginCreateTime,endCreateTime));
- }
- }
|