From db8472b9471de96a68c7fcdb2e66124b2f16854b Mon Sep 17 00:00:00 2001 From: liriming <1343021927@qq.com> Date: 星期三, 02 四月 2025 17:14:56 +0800 Subject: [PATCH] 采纳建议接口 --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleSuggestServiceImpl.java | 4 ++-- iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/McsApi.java | 6 +++--- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/McsApiImpl.java | 4 ++-- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/StScheduleSuggestService.java | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/McsApi.java b/iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/McsApi.java index 5186674..f1bbe8d 100644 --- a/iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/McsApi.java +++ b/iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/McsApi.java @@ -153,8 +153,8 @@ @Operation(summary = "获取") List<Object[]> getItemResultLastPoint(@RequestBody PreItemResultReqVO reqVO); - @PostMapping(PREFIX + "/schedule-suggest/update-status") - @Operation(summary = "修改调度建议状态") - Boolean updateSuggestStatus(@RequestBody StAlarmAndSuggestReqVO reqVO); + @PostMapping(PREFIX + "/schedule-suggest/use-suggest") + @Operation(summary = "采纳建议") + Boolean useSuggest(@RequestBody StAlarmAndSuggestReqVO reqVO); } \ No newline at end of file diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/McsApiImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/McsApiImpl.java index 50f8413..d54714e 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/McsApiImpl.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/McsApiImpl.java @@ -886,8 +886,8 @@ } @Override - public Boolean updateSuggestStatus(StAlarmAndSuggestReqVO reqVO) { - return stScheduleSuggestService.updateSuggestStatus(reqVO); + public Boolean useSuggest(StAlarmAndSuggestReqVO reqVO) { + return stScheduleSuggestService.useSuggest(reqVO); } private Date[] calResultTime(ItemVO predictItem, Date startTimeReq, Date endTimeReq, int lengthLeft, int lengthRight) { diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/StScheduleSuggestService.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/StScheduleSuggestService.java index de7c43b..c5abe36 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/StScheduleSuggestService.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/StScheduleSuggestService.java @@ -39,5 +39,5 @@ List<StScheduleSuggestEntity> getList(List<String> scheduleObjList, Date predictTime); - Boolean updateSuggestStatus(StAlarmAndSuggestReqVO reqVO); + Boolean useSuggest(StAlarmAndSuggestReqVO reqVO); } diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleSuggestServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleSuggestServiceImpl.java index cee5dde..998bf44 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleSuggestServiceImpl.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleSuggestServiceImpl.java @@ -96,10 +96,10 @@ } @Override - public Boolean updateSuggestStatus(StAlarmAndSuggestReqVO reqVO) { + public Boolean useSuggest(StAlarmAndSuggestReqVO reqVO) { StScheduleSuggestEntity entity = new StScheduleSuggestEntity(); entity.setId(reqVO.getId()); - entity.setStatus(reqVO.getStatus()); + entity.setStatus(ScheduleSuggestStatusEnum.S1.getCode()); entity.setHandleTime(new Date()); baseDao.updateById(entity); return true; -- Gitblit v1.9.3