fix(用例管理): 修复用例关联接口和场景报错问题

This commit is contained in:
guoyuqi 2024-10-30 16:42:14 +08:00 committed by Craftsman
parent 8e5acb0013
commit bd43262720
3 changed files with 6 additions and 3 deletions

View File

@ -28,8 +28,10 @@ public interface ExtApiScenarioMapper {
List<ApiScenario> getTagsByIds(@Param("ids") List<String> ids, @Param("deleted") boolean deleted);
@BaseConditionFilter
List<TestCaseProviderDTO> listByProviderRequest(@Param("table") String resourceType, @Param("sourceName") String sourceName, @Param("apiCaseColumnName") String apiCaseColumnName, @Param("request") TestCasePageProviderRequest request, @Param("deleted") boolean deleted);
@BaseConditionFilter
List<ModuleCountDTO> countModuleIdByProviderRequest(@Param("table") String resourceType, @Param("sourceName") String sourceName, @Param("apiCaseColumnName") String apiCaseColumnName, @Param("request") TestCasePageProviderRequest request, @Param("deleted") boolean deleted);
List<BaseTreeNode> selectIdAndParentIdByProjectId(@Param("projectId") String projectId);

View File

@ -218,11 +218,11 @@
<property name="filter" value="request.filter"/>
</include>
<if test="request.combine != null and request.combine != ''">
<if test="request.combineSearch != null and request.combineSearch != ''">
<include refid="combine">
<property name="condition" value="request.combine"/>
<property name="combineSearch" value="request.combineSearch"/>
<property name="name" value="request.name"/>
<property name="ObjectTags" value="request.combine.tags"/>
<property name="ObjectTags" value="request.combineSearch.tags"/>
</include>
</if>

View File

@ -51,6 +51,7 @@ public interface ExtApiTestCaseMapper {
List<String> getIdsByApiIds(@Param("ids") List<String> ids);
@BaseConditionFilter
List<TestCaseProviderDTO> listByProviderRequest(@Param("table") String resourceType, @Param("sourceName") String sourceName, @Param("apiCaseColumnName") String apiCaseColumnName, @Param("request") TestCasePageProviderRequest request, @Param("deleted") boolean deleted);
List<ModuleCountDTO> countModuleIdByProviderRequest(@Param("table") String resourceType, @Param("sourceName") String sourceName, @Param("apiCaseColumnName") String apiCaseColumnName, @Param("request") TestCasePageProviderRequest request, @Param("deleted") boolean deleted);