refactor(项目设置): 调整需求同步细节

This commit is contained in:
guoyuqi 2024-09-05 15:11:29 +08:00 committed by Craftsman
parent e5435ecf90
commit 04eb54b3e6
3 changed files with 5 additions and 5 deletions

View File

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

View File

@ -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());

View File

@ -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);
// keychange
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);
// keychange
await handlePlatformChange(res.platform_key);
}
} catch (e) {
// eslint-disable-next-line no-console