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

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

View File

@ -479,10 +479,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
@ -581,9 +581,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>