diff --git a/backend/src/main/java/io/metersphere/api/service/ApiTestCaseService.java b/backend/src/main/java/io/metersphere/api/service/ApiTestCaseService.java index ef201bd6b3..0821c9d691 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiTestCaseService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiTestCaseService.java @@ -1317,10 +1317,6 @@ public class ApiTestCaseService { ApiScenarioReferenceIdExample apiScenarioReferenceIdExample = new ApiScenarioReferenceIdExample(); apiScenarioReferenceIdExample.createCriteria().andDataTypeEqualTo(ReportTriggerMode.CASE.name()).andReferenceTypeEqualTo(MsTestElementConstants.REF.name()).andReferenceIdEqualTo(testId); List apiScenarioReferenceIds = apiScenarioReferenceIdMapper.selectByExample(apiScenarioReferenceIdExample); - if (CollectionUtils.isEmpty(apiScenarioReferenceIds)) { - return 0; - } else { - return apiScenarioReferenceIds.size(); - } + return apiScenarioReferenceIds.size(); } } diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml index 115eefa490..1b36c234fe 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml @@ -510,7 +510,7 @@ ) - and ( t1.to_be_updated = #{request.toBeUpdated} + and t1.to_be_updated = #{request.toBeUpdated} and (t1.to_be_update_time >= #{request.toBeUpdateTime} or t1.status in @@ -519,7 +519,7 @@ ) - and (t1.to_be_update_time >= #{request.toBeUpdateTime} + and t1.to_be_update_time >= #{request.toBeUpdateTime} diff --git a/backend/src/main/java/io/metersphere/dto/ProjectConfig.java b/backend/src/main/java/io/metersphere/dto/ProjectConfig.java index 4589141e5c..c30fe48d02 100644 --- a/backend/src/main/java/io/metersphere/dto/ProjectConfig.java +++ b/backend/src/main/java/io/metersphere/dto/ProjectConfig.java @@ -29,5 +29,5 @@ public class ProjectConfig { private String triggerUpdate; private Boolean openUpdateTime = false; private String openUpdateRuleTime; - private Boolean openUpdateRule = null; + private Boolean openUpdateRule; }