iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/McsApi.java
@@ -76,6 +76,11 @@ @Operation(summary = "修改预测模型设置参数") Boolean modifyPredictModelSetting(@RequestBody List<PredictModelSettingReqDTO> dtos); @GetMapping(PREFIX + "/schedule-suggest/last-limit") @Operation(summary = "获取调度建议列表") List<ScheduleSuggestRespDTO> getLastLimitScheduleSuggest(@RequestParam("scheduleObj") String scheduleObj, @RequestParam("limit") Integer limit); @PostMapping(PREFIX + "/schedule-model-setting/modify") @Operation(summary = "修改调度模型设置参数") Boolean modifyScheduleModelSetting(@RequestBody List<ScheduleModelSettingReqDTO> dtos); iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/dto/AlarmConfigReqDTO.java
对比新文件 @@ -0,0 +1,27 @@ package com.iailab.module.model.api.mcs.dto; import com.iailab.framework.common.pojo.PageParam; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.ToString; import java.io.Serializable; /** * @author PanZhibao * @Description * @createTime 2024年11月20日 */ @Schema(description = "模型平台 - Request VO") @Data public class AlarmConfigReqDTO implements Serializable { private static final long serialVersionUID = 1L; @Schema(description = "消息标题") private String title; @Schema(description = "监控对象") private String alarmObj; } iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/dto/AlarmConfigRespDTO.java
对比新文件 @@ -0,0 +1,72 @@ package com.iailab.module.model.api.mcs.dto; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; /** * @author PanZhibao * @Description * @createTime 2024年11月20日 */ @Schema(description = "模型服务 - 预警配置 Response VO") @Data public class AlarmConfigRespDTO implements Serializable { private static final long serialVersionUID = 1L; @Schema(description = "ID") private String id; @Schema(description = "消息标题") private String title; @Schema(description = "监控对象") private String alarmObj; @Schema(description = "预测项ID") private String itemId; private String itemName; @Schema(description = "输出ID") private String outId; private String outName; @Schema(description = "比较长度") private Integer compLength; @Schema(description = "上限") private BigDecimal upperLimit; @Schema(description = "下限") private BigDecimal lowerLimit; @Schema(description = "单位") private String unit; @Schema(description = "转换系数") private BigDecimal coefficient; @Schema(description = "调度方案") private String scheduleId; @Schema(description = "是否启用(0禁用 1启用)") private Integer isEnable; @Schema(description = "创建者") private String creator; @Schema(description = "创建时间") private Date createTime; @Schema(description = "更新者") private String updater; @Schema(description = "更新时间") private Date updateTime; } iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/McsApiImpl.java
@@ -17,7 +17,6 @@ import com.iailab.module.model.mcs.pre.entity.MmItemOutputEntity; import com.iailab.module.model.mcs.pre.entity.MmPredictAlarmMessageEntity; import com.iailab.module.model.mcs.pre.service.*; import com.iailab.module.model.mcs.pre.service.impl.MmPredictAlarmConfigServiceImpl; import com.iailab.module.model.mcs.pre.vo.MmPredictAlarmMessageSaveReqVO; import com.iailab.module.model.mcs.sche.entity.StScheduleSuggestEntity; import com.iailab.module.model.mcs.sche.service.StScheduleSuggestService; @@ -79,6 +78,7 @@ @Autowired private MmPredictAlarmConfigService mmPredictAlarmConfigService; private int HOUR_MINS = 60; @@ -516,6 +516,11 @@ } @Override public List<ScheduleSuggestRespDTO> listScheduleSuggest(ScheduleSuggestReqDTO params) { return Collections.emptyList(); } @Override public List<ScheduleSuggestRespDTO> getLastLimitScheduleSuggest(String scheduleObj, Integer limit) { List<StScheduleSuggestEntity> list = stScheduleSuggestService.getList(scheduleObj, limit); return ConvertUtils.sourceToTarget(list, ScheduleSuggestRespDTO.class);