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 map = homePageService.receivableAmount(endTime, startTime); return JsonModel.newInstance().success(map); } /** * 订单总量统计 */ @RequestMapping("order") public JsonModel orderQuantity(String endTime, String startTime) { Map map = homePageService.orderQuantity(endTime, startTime); return JsonModel.newInstance().success(map); } }