12345678910111213141516171819202122232425262728293031323334 |
- package com.caimei.modules.shiro.controller;
- import com.caimei.modules.shiro.service.HomePageService;
- import com.caimei.utils.JsonModel;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import java.util.Map;
- @RestController
- @RequestMapping("homepage")
- public class HomePageController {
- @Autowired
- private HomePageService homePageService;
- /**
- * 收款金额统计
- */
- @RequestMapping("receivable")
- public JsonModel receivableAmount(String endTime, String startTime) {
- Map<String, Object> map = homePageService.receivableAmount(endTime, startTime);
- return JsonModel.newInstance().success(map);
- }
- /**
- * 订单总量统计
- */
- @RequestMapping("order")
- public JsonModel orderQuantity(String endTime, String startTime) {
- Map<String, Object> map = homePageService.orderQuantity(endTime, startTime);
- return JsonModel.newInstance().success(map);
- }
- }
|