diff --git a/backend/src/main/java/io/metersphere/api/service/ShareInfoService.java b/backend/src/main/java/io/metersphere/api/service/ShareInfoService.java index ce7ef459dc..e88028d464 100644 --- a/backend/src/main/java/io/metersphere/api/service/ShareInfoService.java +++ b/backend/src/main/java/io/metersphere/api/service/ShareInfoService.java @@ -44,7 +44,11 @@ public class ShareInfoService { if (request.getProjectId() == null) { List shareIdList = this.selectShareIdByShareInfoId(request.getShareId()); request.setApiIdList(shareIdList); - return extShareInfoMapper.findApiDocumentSimpleInfoByRequest(request); + if(shareIdList.isEmpty()){ + return new ArrayList<>(); + }else { + return extShareInfoMapper.findApiDocumentSimpleInfoByRequest(request); + } } else { return extShareInfoMapper.findApiDocumentSimpleInfoByRequest(request); } diff --git a/backend/src/main/resources/db/migration/V66__init_test_plan_report.sql b/backend/src/main/resources/db/migration/V66__init_test_plan_report.sql index f144c42f6d..d30a8776e8 100644 --- a/backend/src/main/resources/db/migration/V66__init_test_plan_report.sql +++ b/backend/src/main/resources/db/migration/V66__init_test_plan_report.sql @@ -9,9 +9,9 @@ CREATE TABLE IF NOT EXISTS `test_plan_report` ( `creator` VARCHAR ( 50 ) DEFAULT NULL COMMENT 'report creator', `start_time` BIGINT ( 13 ) DEFAULT NULL COMMENT 'report startTime', `end_time` BIGINT ( 13 ) DEFAULT NULL COMMENT 'report timestamp', - `is_api_case_executing` TINYINT NOT NULL COMMENT 'is Api Case executing', - `is_scenario_executing` TINYINT NOT NULL COMMENT 'is scenario Case executing', - `is_performance_executing` TINYINT NOT NULL COMMENT 'is performance executing', + `is_api_case_executing` TINYINT(1) NOT NULL COMMENT 'is Api Case executing', + `is_scenario_executing` TINYINT(1) NOT NULL COMMENT 'is scenario Case executing', + `is_performance_executing` TINYINT(1) NOT NULL COMMENT 'is performance executing', `principal` VARCHAR ( 50 ) DEFAULT NULL COMMENT 'principal', PRIMARY KEY ( `id` ), UNIQUE KEY `executeInfoID` ( `test_plan_id`, `create_time` ) diff --git a/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue b/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue index 741b5f0bbd..fdef1192c9 100644 --- a/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue +++ b/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue @@ -443,12 +443,6 @@ export default { formatRowData(dataType, data) { var returnData = data; if (data) { - - // if(dataType === 'XML'){ - // returnData = ""+returnData+""; - // }else { - // - // } returnData = ""+returnData+""; } return returnData;