dongyukun
8 天以前 6eeac9efdb16f92d19536bf23a2d1471705fe752
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