| | |
| | | package com.ruoyi.home.controller; |
| | | |
| | | import com.ruoyi.approve.pojo.ApproveProcess; |
| | | import com.ruoyi.energy.vo.EnergyStatisticsVo; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.home.annotation.DefaultType; |
| | | import com.ruoyi.home.dto.*; |
| | | import com.ruoyi.home.service.HomeService; |
| | | import com.ruoyi.dto.MapDto; |
| | | import com.ruoyi.productionPlan.service.SalesDeliveryService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | return AjaxResult.success(homeService.energy(dto)); |
| | | } |
| | | |
| | | @GetMapping("/solidWaste/coreIndicators") |
| | | @ApiOperation("固废消纳量-核心指标") |
| | | public AjaxResult coreIndicators(productionStatisticsDto dto){ |
| | | return AjaxResult.success(homeService.coreIndicators(dto)); |
| | | } |
| | | |
| | | @GetMapping("/solidWaste/trends") |
| | | @ApiOperation("固废消纳量-固废消纳趋势") |
| | | public AjaxResult trends(productionStatisticsDto dto){ |
| | | return AjaxResult.success(homeService.trends(dto)); |
| | | } |
| | | |
| | | @GetMapping("/solidWaste/typeDistribution") |
| | | @ApiOperation("固废消纳量-固废类型分布") |
| | | public AjaxResult typeDistribution(productionStatisticsDto dto){ |
| | | return AjaxResult.success(homeService.typeDistribution(dto)); |
| | | } |
| | | |
| | | @GetMapping("/manage") |
| | | @ApiOperation("首页--经营关注") |
| | | public AjaxResult manage() { |
| | | return AjaxResult.success(homeService.manage()); |
| | | } |
| | | |
| | | @GetMapping("/planTrends") |
| | | @ApiOperation("首页-计划与生产趋势") |
| | | public AjaxResult planTrends(@DefaultType Integer type) { |
| | | List<PlanTrendsDto> list = homeService.planTrends(type); |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | } |