From b2bb7d1ff5639dd844e84b881a515eca30625411 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期四, 02 一月 2025 13:40:43 +0800 Subject: [PATCH] 调度模型运行状态显示 --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleModelServiceImpl.java | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleModelServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleModelServiceImpl.java index a3cf4d3..2932e85 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleModelServiceImpl.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleModelServiceImpl.java @@ -6,6 +6,7 @@ import com.iailab.framework.common.util.object.BeanUtils; import com.iailab.module.model.mcs.sche.dao.StScheduleModelDao; import com.iailab.module.model.mcs.sche.entity.StScheduleModelEntity; +import com.iailab.module.model.mcs.sche.service.StScheduleModelOutService; import com.iailab.module.model.mcs.sche.service.StScheduleModelParamService; import com.iailab.module.model.mcs.sche.service.StScheduleModelService; import com.iailab.module.model.mcs.sche.service.StScheduleModelSettingService; @@ -36,6 +37,9 @@ @Autowired private StScheduleModelSettingService stScheduleModelSettingService; + @Autowired + private StScheduleModelOutService stScheduleModelOutService; + @Override public PageResult<StScheduleModelEntity> page(StScheduleModelPageReqVO reqVO) { return stScheduleModelDao.selectPage(reqVO); @@ -54,6 +58,7 @@ entity.setId(UUID.randomUUID().toString()); stScheduleModelDao.insert(entity); stScheduleModelParamService.saveList(entity.getId(), reqVO.getParamList()); + stScheduleModelOutService.insertList(reqVO.getModelOut(), entity.getId()); stScheduleModelSettingService.saveList(entity.getId(), reqVO.getSettingList()); } @@ -64,6 +69,8 @@ stScheduleModelDao.updateById(entity); stScheduleModelParamService.saveList(entity.getId(), reqVO.getParamList()); stScheduleModelSettingService.saveList(entity.getId(), reqVO.getSettingList()); + stScheduleModelOutService.deleteScheduleModelOut(entity.getId()); + stScheduleModelOutService.insertList(reqVO.getModelOut(), entity.getId()); } @Override @@ -77,6 +84,7 @@ stScheduleModelDao.deleteById(id); stScheduleModelParamService.deleteByModelId(id); stScheduleModelSettingService.deleteByModelId(id); + stScheduleModelOutService.deleteScheduleModelOut(id); } @Override -- Gitblit v1.9.3