| | |
| | | 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); |
| | | } |
| | | } |