diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/job/DemandSyncJob.java b/backend/services/case-management/src/main/java/io/metersphere/functional/job/DemandSyncJob.java index 5efe3d0244..45429f4961 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/job/DemandSyncJob.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/job/DemandSyncJob.java @@ -53,7 +53,7 @@ public class DemandSyncJob extends BaseScheduleJob { * @return 是否放行 */ private boolean checkBeforeSync(String projectId) { - ServiceIntegration serviceIntegration = projectApplicationService.getPlatformServiceIntegrationWithSyncOrDemand(projectId, true); + ServiceIntegration serviceIntegration = projectApplicationService.getPlatformServiceIntegrationWithSyncOrDemand(projectId, false); return serviceIntegration != null && serviceIntegration.getEnable(); } } diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/DemandSyncService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/DemandSyncService.java index 1d0b5207e1..996f22270f 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/DemandSyncService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/DemandSyncService.java @@ -123,7 +123,7 @@ public class DemandSyncService { if (demand.getDemandName().length() > 255) { demand.setDemandName(demand.getDemandName().substring(0, 255)); } else { - demand.setDemandName("ceshi"+demand.getDemandName()); + demand.setDemandName(demand.getDemandName()); } } functionalCaseDemand.setDemandName(demand.getDemandName()); diff --git a/frontend/src/views/project-management/projectAndPermission/menuManagement/components/relatedCase.vue b/frontend/src/views/project-management/projectAndPermission/menuManagement/components/relatedCase.vue index 842431930f..414e3fafab 100644 --- a/frontend/src/views/project-management/projectAndPermission/menuManagement/components/relatedCase.vue +++ b/frontend/src/views/project-management/projectAndPermission/menuManagement/components/relatedCase.vue @@ -233,13 +233,13 @@ await initPlatformOption(); const res = await getCaseRelatedInfo(currentProjectId.value); if (res && res.platform_key) { + formCreateValue.value = JSON.parse(res.demand_platform_config); + // 如果平台key存在调用平台change拉取插件字段 + await handlePlatformChange(res.platform_key); form.CASE_ENABLE = res.case_enable; form.PLATFORM_KEY = res.platform_key; form.SYNC_ENABLE = res.sync_enable; form.CRON_EXPRESSION = res.cron_expression; - formCreateValue.value = JSON.parse(res.demand_platform_config); - // 如果平台key存在调用平台change拉取插件字段 - await handlePlatformChange(res.platform_key); } } catch (e) { // eslint-disable-next-line no-console