refactor(项目设置): 调整需求同步细节
This commit is contained in:
parent
e5435ecf90
commit
04eb54b3e6
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue