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);
|
}
|