dengzedong
6 天以前 56e36dc4e6c1effe6204f72467d3b40d5d716a75
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleModelSettingServiceImpl.java
@@ -44,10 +44,18 @@
        if (CollectionUtils.isEmpty(saveList)) {
            return;
        }
        saveList.forEach(item -> {
        for (int i = 0; i < saveList.size(); i++) {
            StScheduleModelSettingSaveReqVO item = saveList.get(i);
            StScheduleModelSettingEntity entity = BeanUtils.toBean(item, StScheduleModelSettingEntity.class);
            entity.setId(UUID.randomUUID().toString());
            entity.setModelid(modelId);
            entity.setSort(i);
            baseDao.insert(entity);
        });
        }
    }
    @Override
    public void updatePyFile(String pyModule, String fileName) {
        baseDao.updatePyFile(pyModule + "." + fileName.substring(0,fileName.lastIndexOf("_")+1),pyModule + "." + fileName);
    }
}