潘志宝
2025-03-23 ead3a7406d18f4f2ee5afe581bcb04f8d64fcb5e
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/McsApiController.java
@@ -144,11 +144,18 @@
    }
    @GetMapping("/schedule-suggest/last-limit")
    @Operation(summary = "根据监控对象获取最新预警信息")
    @Operation(summary = "根据监控对象获取最新调度建议")
    public CommonResult<List<ScheduleSuggestRespDTO>> getLastLimitScheduleSuggest(HttpServletResponse response, HttpServletRequest
            request, @RequestParam("scheduleObj") String scheduleObj, @RequestParam("limit") Integer limit) {
        List<ScheduleSuggestRespDTO> data = mcsApi.getLastLimitScheduleSuggest(scheduleObj, limit);
        return CommonResult.success(data);
    }
    @PostMapping("/schedule-suggest/list")
    @Operation(summary = "获取调度建议")
    public CommonResult<List<ScheduleSuggestRespDTO>> listScheduleSuggest(@RequestBody ScheduleSuggestReqDTO vo) {
        List<ScheduleSuggestRespDTO> list = mcsApi.listScheduleSuggest(vo);
        return CommonResult.success(list);
    }
    @PostMapping("/alarm-suggest/page")
@@ -215,4 +222,32 @@
    CommonResult<Map<String,List<Object[]>>> getPredictDataItemNo(@RequestBody PreDataItemNoReqVO reqVO) {
        return CommonResult.success(mcsApi.getPredictDataItemNo(reqVO));
    }
    @GetMapping("/electricityPrice/list")
    @Operation(summary = "电价表")
    public CommonResult<List<ElectricityPriceSegmentedDTO>> getElectricityPriceList(@RequestParam("year") String year, @RequestParam("time") String time) {
        List<ElectricityPriceSegmentedDTO> electricityPriceSegmentedList = mcsApi.getElectricityPriceList(year, time);
        return CommonResult.success(electricityPriceSegmentedList);
    }
    @GetMapping("/schedule/model/setting/update")
    @Operation(summary = "修改调度模型配置")
    public CommonResult<Boolean> updateScheduleModelSetting(@RequestParam("modelCode") String modelCode, @RequestParam("key") String key, @RequestParam("value") String value){
        mcsApi.updateScheduleModelSetting(modelCode, key, value);
        return success( true);
    }
    @GetMapping("/alarm-config/update")
    @Operation(summary = "修改预警配置列表")
    public CommonResult<Boolean> updateAlarmConfig(@RequestParam("alarmObj")String alarmObj, @RequestParam("upperLimit")String upperLimit, @RequestParam("lowerLimit")String lowerLimit){
        mcsApi.updateAlarmConfig(alarmObj, upperLimit, lowerLimit);
        return success( true);
    }
    @PostMapping("/chart/param/update")
    @Operation(summary = "修改图表参数配置")
    public CommonResult<Boolean> updateChartParam(@RequestBody ChartDTO chartDTO){
        mcsApi.updateChartParam(chartDTO);
        return success( true);
    }
}