feat(接口测试): mock列表高级筛选缺少路径字段

--bug=1047894 --user=宋昌昌 【接口测试】定义-MOCK-高级搜索-筛选字段缺少「接口路径」表头字段 https://www.tapd.cn/55049933/s/1596605
This commit is contained in:
song-cc-rock 2024-10-23 16:23:51 +08:00 committed by Craftsman
parent b9ef3d9004
commit 4dac67ad05
2 changed files with 15 additions and 4 deletions

View File

@ -1,12 +1,16 @@
package io.metersphere.system.domain; package io.metersphere.system.domain;
import io.metersphere.validation.groups.*; import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*; import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import lombok.Data;
@Data @Data
public class UserViewCondition implements Serializable { public class UserViewCondition implements Serializable {
@ -28,7 +32,7 @@ public class UserViewCondition implements Serializable {
@Schema(description = "查询的期望值") @Schema(description = "查询的期望值")
private String value; private String value;
@Schema(description = "期望值的数据类型STRING,INT,FLOAT,ARRAY") @Schema(description = "期望值的数据类型STRING,INT,FLOAT,ARRAY, BOOLEAN")
private String valueType; private String valueType;
@Schema(description = "是否为自定义字段", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "是否为自定义字段", requiredMode = Schema.RequiredMode.REQUIRED)

View File

@ -220,6 +220,13 @@
<property name="column" value="m.enable"/> <property name="column" value="m.enable"/>
</include> </include>
</if> </if>
<!-- 路径 -->
<if test="condition.name == 'path'">
<include refid="io.metersphere.system.mapper.BaseMapper.condition">
<property name="condition" value="condition"/>
<property name="column" value="d.path"/>
</include>
</if>
<include refid="io.metersphere.system.mapper.BaseMapper.queryType"> <include refid="io.metersphere.system.mapper.BaseMapper.queryType">
<property name="searchMode" value="${combineSearch}.searchMode"/> <property name="searchMode" value="${combineSearch}.searchMode"/>
</include> </include>