fix: 接口定义批量操作报错

This commit is contained in:
chenjianxing 2021-07-26 16:36:59 +08:00 committed by jianxing
parent 9d8d3859bb
commit 0e46177fa1
1 changed files with 1 additions and 4 deletions

View File

@ -488,10 +488,10 @@
<select id="selectIds" resultType="java.lang.String">
select api_definition.id
from api_definition
left join project on api_definition.project_id = project.id
<include refid="queryWhereCondition"/>
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.orders"/>
</select>
<select id="selectEffectiveIdByProjectId" resultType="io.metersphere.base.domain.ApiDefinition">
select id,path,method
from api_definition
@ -590,9 +590,6 @@
<when test="request.projectId != null">
AND api_definition.project_id = #{request.projectId}
</when>
<when test="request.projectId != null">
AND project.id = #{request.projectId}
</when>
<when test="request.workspaceId != null">
AND project.workspace_id = #{request.workspaceId}
</when>