| | |
| | | @Service |
| | | public class MlModelServiceImpl extends BaseServiceImpl<MlModelDao, MlModelEntity> implements MlModelService { |
| | | |
| | | @Value("${mablab.bak-file-path}") |
| | | private String mablabBakFilePath; |
| | | @Value("${matlab.bak-file-path}") |
| | | private String matlabBakFilePath; |
| | | |
| | | @Autowired |
| | | private MlModelMethodService mlModelMethodService; |
| | |
| | | private String getMatlabTenantBakFilePath() { |
| | | Long tenantId = TenantContextHolder.getTenantId(); |
| | | // 备份文件夹 租户隔离 |
| | | String matlabTenantBakFilePath = mablabBakFilePath + File.separator + tenantId; |
| | | String matlabTenantBakFilePath = matlabBakFilePath + File.separator + tenantId; |
| | | File bakDir = new File(matlabTenantBakFilePath); |
| | | if (!bakDir.exists()) { |
| | | bakDir.mkdirs(); |