fix: 接口定义批量操作报错
This commit is contained in:
parent
9d8d3859bb
commit
0e46177fa1
|
@ -488,10 +488,10 @@
|
||||||
<select id="selectIds" resultType="java.lang.String">
|
<select id="selectIds" resultType="java.lang.String">
|
||||||
select api_definition.id
|
select api_definition.id
|
||||||
from api_definition
|
from api_definition
|
||||||
left join project on api_definition.project_id = project.id
|
|
||||||
<include refid="queryWhereCondition"/>
|
<include refid="queryWhereCondition"/>
|
||||||
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.orders"/>
|
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.orders"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectEffectiveIdByProjectId" resultType="io.metersphere.base.domain.ApiDefinition">
|
<select id="selectEffectiveIdByProjectId" resultType="io.metersphere.base.domain.ApiDefinition">
|
||||||
select id,path,method
|
select id,path,method
|
||||||
from api_definition
|
from api_definition
|
||||||
|
@ -590,9 +590,6 @@
|
||||||
<when test="request.projectId != null">
|
<when test="request.projectId != null">
|
||||||
AND api_definition.project_id = #{request.projectId}
|
AND api_definition.project_id = #{request.projectId}
|
||||||
</when>
|
</when>
|
||||||
<when test="request.projectId != null">
|
|
||||||
AND project.id = #{request.projectId}
|
|
||||||
</when>
|
|
||||||
<when test="request.workspaceId != null">
|
<when test="request.workspaceId != null">
|
||||||
AND project.workspace_id = #{request.workspaceId}
|
AND project.workspace_id = #{request.workspaceId}
|
||||||
</when>
|
</when>
|
||||||
|
|
Loading…
Reference in New Issue