gongchunyi
4 天以前 d6c8f5b4f76a50f36b51b985dc061631795d6303
src/main/java/com/ruoyi/home/controller/HomeController.java
@@ -1,24 +1,18 @@
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;
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 org.springframework.web.bind.annotation.*;
import java.text.ParseException;
import java.util.List;
@@ -421,5 +415,19 @@
        return AjaxResult.success(homeService.manage());
    }
    @GetMapping("/planTrends")
    @ApiOperation("首页-计划与生产趋势")
    public AjaxResult planTrends(@DefaultType Integer type) {
        List<PlanTrendsDto> list = homeService.planTrends(type);
        return AjaxResult.success(list);
    }
    @GetMapping("/rawMaterialProductions/{month}")
    @ApiOperation("成本核算-原料生产统计单耗表")
    public AjaxResult rawMaterialProductions(@PathVariable String month){
        List<RawMaterialProductionDto> list = homeService.rawMaterialProductions(month);
        return AjaxResult.success(list);
    }
}