maven
2025-10-14 cf6b1cf6fa8f7784c6d7c64b7326d4662bc3d4b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
package com.ruoyi.business.controller;
 
import com.ruoyi.business.dto.*;
import com.ruoyi.business.entity.OfficialInventory;
import com.ruoyi.business.entity.ProductionScheduling;
import com.ruoyi.business.entity.PurchaseRegistration;
import com.ruoyi.business.service.ProductHomeService;
import com.ruoyi.common.core.domain.R;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
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.RestController;
 
import java.util.List;
 
/**
 * @author :yys
 * @date : 2025/10/13 9:12
 */
@Tag(name = "生产管控统计报表")
@RestController
@RequestMapping("/productHome")
public class ProductHomeController {
 
    @Autowired
    private ProductHomeService productHomeService;
 
    @GetMapping("/productionSchedulingStatistics")
    @Operation(summary = "智能排产-生产排程统计")
    public R<ProductionSchedulingStatisticsDto> productionSchedulingStatistics(DateQueryDto dto) {
        return productHomeService.productionSchedulingStatistics(dto);
    }
 
    @GetMapping("/productionSchedulingStatisticsList")
    @Operation(summary = "智能排产-生产排程统计列表")
    public R<List<ProductionScheduling>> productionSchedulingStatisticsList(DateQueryDto dto) {
        return productHomeService.productionSchedulingStatisticsList(dto);
    }
 
    @Operation(summary = "智能排产-库存原料列表")
    @GetMapping("/productionSchedulingInventoryList")
    public R<List<OfficialInventory>> productionSchedulingInventoryList(DateQueryDto dto) {
        return productHomeService.productionSchedulingInventoryList(dto);
    }
 
    @Operation(summary = "物料看板-统计")
    @GetMapping("/materialStatistics")
    public R<MaterialStatisticsDto> materialStatistics(DateQueryDto dto) {
        return productHomeService.materialStatistics(dto);
    }
 
    @Operation(summary = "物料看板-煤种分布")
    @GetMapping("/coalTypeDistribution")
    public R<List<ItemListDto>> coalTypeDistribution(DateQueryDto dto) {
        return productHomeService.coalTypeDistribution(dto);
    }
 
    @Operation(summary = "物料看板-产地分布")
    @GetMapping("/originDistribution")
    public R<List<ItemListDto>> originDistribution(DateQueryDto dto) {
        return productHomeService.originDistribution(dto);
    }
 
    @Operation(summary = "物料看板-热值分布")
    @GetMapping("/heatValueDistribution")
    public R<List<ItemListDto>> heatValueDistribution(DateQueryDto dto) {
        return productHomeService.heatValueDistribution(dto);
    }
 
    @Operation(summary = "物料看板-车次编码统计")
    @GetMapping("/carCodeDistribution")
    public R<List<CarDto>> carCodeDistribution(DateQueryDto dto) {
        return productHomeService.carCodeDistribution(dto);
    }
 
    @Operation(summary = "物料看板-最近交易记录")
    @GetMapping("/recentTransaction")
    public R<List<PurchaseRegistration>> recentTransaction(DateQueryDto dto) {
        return productHomeService.recentTransaction(dto);
    }
 
    @Operation(summary = "报表分析-统计")
    @GetMapping("/reportStatistics")
    public R<ReportStatisticsDto> reportStatistics(DateQueryDto dto) {
        return productHomeService.reportStatistics(dto);
    }
 
    @Operation(summary = "报表分析-达标率趋势")
    @GetMapping("/reportTrend")
    public R<List<ItemListDto>> reportTrend(DateQueryDto dto) {
        return productHomeService.reportTrend(dto);
    }
 
    @Operation(summary = "报表分析-煤种发热量对比")
    @GetMapping("/coalTypeHeatValueComparison")
    public R<List<ItemListDto>> coalTypeHeatValueComparison(DateQueryDto dto) {
        return productHomeService.coalTypeHeatValueComparison(dto);
    }
 
    @Operation(summary = "报表分析-加工得率分析")
    @GetMapping("/processingRateAnalysis")
    public R<List<ItemListDto>> processingRateAnalysis(DateQueryDto dto) {
        return productHomeService.processingRateAnalysis(dto);
    }
 
    @Operation(summary = "报表分析-成本结构图谱")
    @GetMapping("/costStructure")
    public R<List<ItemListDto>> costStructure(DateQueryDto dto) {
        return productHomeService.costStructure(dto);
    }
 
 
}