houzhongjian
2024-07-23 a6de490948278991e47952e90671ddba4555e9a2
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
package com.iailab.api;
 
import com.iailab.dto.*;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
 
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
 
/**
 * 生产调度
 *
 * @author PanZhibao
 * @Description
 * @createTime 2023年06月28日 08:54:00
 */
@FeignClient(value = "iailab-ntt-coal-proddisp", path = "/")
public interface IFeignProddispApi {
 
    @Parameter(name = "FeignConsumeTargetDTO", description = "消耗指标", required = true)
    @Operation(summary = "Feign接口-创建消耗指标")
    @PostMapping("/api/feign/create/consume-target")
    void createConsumeTarget(@RequestBody FeignConsumeTargetDTO dto);
 
    @Parameter(name = "FeignRunTimeDTO", description = "运行时长", required = true)
    @Operation(summary = "Feign接口-创建运行时长")
    @PostMapping("/api/feign/create/run-time")
    void createRunTime(@RequestBody FeignRunTimeDTO dto);
 
    @Parameter(name = "FeignHourVolumeDTO", description = "小时量", required = true)
    @Operation(summary = "Feign接口-创建小时量")
    @PostMapping("/api/feign/create/hour-volume")
    void createHourVolume(@RequestBody FeignHourVolumeDTO dto);
 
    @Parameter(name = "FeignWarehousePositionDTO", description = "仓位", required = true)
    @Operation(summary = "Feign接口-创建仓位")
    @PostMapping("/api/feign/create/warehouse-position")
    void createWarehousePosition(@RequestBody FeignWarehousePositionDTO dto);
 
    @Parameter(name = "FeignWarehouseStockDTO", description = "库存", required = true)
    @Operation(summary = "Feign接口-创建库存")
    @PostMapping("/api/feign/create/warehouse-stock")
    void createWarehouseStock(@RequestBody FeignWarehouseStockDTO dto);
 
    @Parameter(name = "FeignWashTransferInDTO", description = "调入量", required = true)
    @Operation(summary = "Feign接口-创建调入量")
    @PostMapping("/api/feign/create/wash-transfer-in")
    void createWashTransferIn(@RequestBody FeignWashTransferInDTO dto);
 
    @Parameter(name = "FeignPowerConsumeDTO", description = "电耗", required = true)
    @Operation(summary = "Feign接口-创建调入量")
    @PostMapping("/api/feign/create/power-consume")
    void createPowerConsume(@RequestBody FeignPowerConsumeDTO dto);
 
    @Parameter(name = "FeignRunTimeDTO", description = "入洗量", required = true)
    @Operation(summary = "Feign接口-创建入洗量")
    @PostMapping("/api/feign/create/wash-to-wash")
    void createWashToWash(@RequestBody FeignWashToWashDTO dto);
 
    @Parameter(name = "FeignRunTimeDTO", description = "生产量", required = true)
    @Operation(summary = "Feign接口-创建生产量")
    @PostMapping("/api/feign/create/wash-prod-volume")
    void createWashProdVolume(@RequestBody FeignWashProdVolumeDTO dto);
 
    @Parameter(name = "map", description = "查询库存", required = true)
    @Operation(summary = "Feign接口-查询库存")
    @PostMapping("/api/feign/select/warehouse-group")
    List<FeignWarehousePositionDTO> selectWarehouseGroupByCp(@RequestParam("params") Map<String, Object> params);
 
    @Parameter(name = "map", description = "查询当班总电耗", required = true)
    @Operation(summary = "Feign接口-查询当班总电耗")
    @PostMapping("/api/feign/select/powerConsume")
    BigDecimal sumData(@RequestParam("params") Map<String, Object> params);
 
    @Parameter(name = "String", description = "查询煤仓详情列表", required = true)
    @Operation(summary = "Feign接口-查询煤仓详情列表")
    @PostMapping("/api/feign/select/warehouse-item-list")
    List<FeignWarehouseItemDTO> selectWarehouseItemListByMclx(@RequestParam("mclx") String mclx);
 
    @Parameter(name = "String", description = "查询煤仓详情", required = true)
    @Operation(summary = "Feign接口-查询煤仓详情")
    @PostMapping("/api/feign/select/warehouse-item")
    FeignWarehouseItemDTO selectWarehouseItemByMc(@RequestParam("mc") String mc);
 
    @Parameter(name = "String", description = "查询煤仓煤种", required = true)
    @Operation(summary = "Feign接口-查询煤仓详情")
    @PostMapping("/api/feign/select/mc-mz")
    List<FeignMcMzDTO> selectMcMzByMc(@RequestParam("mc") String mc);
}