From 7daa9ab004139a976e59a2bdf36dca569df24c79 Mon Sep 17 00:00:00 2001 From: liriming <1343021927@qq.com> Date: 星期三, 02 四月 2025 16:35:52 +0800 Subject: [PATCH] 修改建议状态时记录时间 --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleSuggestServiceImpl.java | 30 ++++++++++++++++++++++++++---- 1 files changed, 26 insertions(+), 4 deletions(-) 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 27b279d..cee5dde 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 @@ -7,19 +7,20 @@ import com.iailab.framework.common.util.object.ConvertUtils; import com.iailab.module.model.api.mcs.dto.ScheduleSuggestReqDTO; import com.iailab.module.model.api.mcs.dto.ScheduleSuggestRespDTO; +import com.iailab.module.model.api.mcs.dto.StAlarmAndSuggestReqVO; +import com.iailab.module.model.api.mcs.dto.StAlarmAndSuggestRespVO; import com.iailab.module.model.common.enums.ScheduleSuggestStatusEnum; import com.iailab.module.model.mcs.sche.dao.StScheduleSuggestDao; +import com.iailab.module.model.mcs.sche.entity.StScheduleSchemeEntity; import com.iailab.module.model.mcs.sche.entity.StScheduleSuggestEntity; import com.iailab.module.model.mcs.sche.service.StScheduleSuggestService; import com.iailab.module.model.mcs.sche.vo.StScheduleSuggestPageReqVO; import com.iailab.module.model.mcs.sche.vo.StScheduleSuggestSaveReqVO; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Service; +import org.springframework.util.CollectionUtils; -import java.util.Date; -import java.util.List; -import java.util.Map; -import java.util.UUID; +import java.util.*; /** * @author PanZhibao @@ -82,4 +83,25 @@ .le(null != vo.getEndTime(),"schedule_time",vo.getEndTime()); return ConvertUtils.sourceToTarget(baseDao.selectList(queryWrapper),ScheduleSuggestRespDTO.class); } + + @Override + public List<StScheduleSuggestEntity> getList(List<String> scheduleObjList, Date predictTime) { + if (CollectionUtils.isEmpty(scheduleObjList)) { + return new ArrayList<>(); + } + QueryWrapper<StScheduleSuggestEntity> queryWrapper = new QueryWrapper<>(); + queryWrapper.in("schedule_obj", scheduleObjList); + queryWrapper.eq("schedule_time", predictTime); + return baseDao.selectList(queryWrapper); + } + + @Override + public Boolean updateSuggestStatus(StAlarmAndSuggestReqVO reqVO) { + StScheduleSuggestEntity entity = new StScheduleSuggestEntity(); + entity.setId(reqVO.getId()); + entity.setStatus(reqVO.getStatus()); + entity.setHandleTime(new Date()); + baseDao.updateById(entity); + return true; + } } \ No newline at end of file -- Gitblit v1.9.3