refactor(项目设置): 已关联三方需求在列表上禁用
This commit is contained in:
parent
c00303e863
commit
170dce538d
|
@ -606,9 +606,8 @@ public class ProjectApplicationService {
|
|||
*/
|
||||
public String getDemandPlatformId(String projectId) {
|
||||
ProjectApplication platformEnableConfig = getByType(projectId, ProjectApplicationType.CASE_RELATED_CONFIG.CASE_RELATED.name() + "_" + ProjectApplicationType.CASE_RELATED_CONFIG.CASE_ENABLE.name());
|
||||
ProjectApplication platformSyncConfig = getByType(projectId, ProjectApplicationType.CASE_RELATED_CONFIG.CASE_RELATED.name() + "_" + ProjectApplicationType.CASE_RELATED_CONFIG.SYNC_ENABLE.name());
|
||||
ProjectApplication platformKeyConfig = getByType(projectId, ProjectApplicationType.CASE_RELATED_CONFIG.CASE_RELATED.name() + "_PLATFORM_KEY");
|
||||
boolean isEnable = platformEnableConfig != null && Boolean.parseBoolean(platformEnableConfig.getTypeValue()) && platformSyncConfig != null && platformKeyConfig != null;
|
||||
boolean isEnable = platformEnableConfig != null && Boolean.parseBoolean(platformEnableConfig.getTypeValue()) && platformKeyConfig != null;
|
||||
if (!isEnable) {
|
||||
return "Metersphere";
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue