fix(测试跟踪、接口定义): 测试跟踪、接口定义列表报错
This commit is contained in:
parent
ce0f4cbf25
commit
ec82ffab5d
|
@ -246,7 +246,7 @@
|
|||
api_definition.name,api_definition.protocol,api_definition.path,api_definition.module_id,api_definition.module_path,api_definition.method,
|
||||
api_definition.description,api_definition.request,api_definition.response,api_definition.environment_id,
|
||||
api_definition.status, api_definition.user_id, api_definition.create_time, api_definition.update_time, api_definition.delete_user_id, api_definition.create_user,api_definition.delete_time, api_definition.remark, api_definition.version_id,
|
||||
project_version.name as version_name, api_definition.ref_id, user.name as user_name,
|
||||
project_version.name as version_name, api_definition.ref_id, user.name as user_name
|
||||
from api_definition
|
||||
left join user on api_definition.user_id = user.id
|
||||
LEFT JOIN project_version ON project_version.id = api_definition.version_id AND project_version.project_id = #{request.projectId}
|
||||
|
|
|
@ -212,7 +212,7 @@
|
|||
|
||||
<select id="list" resultType="io.metersphere.track.dto.TestCaseDTO">
|
||||
select
|
||||
deleteUser.name AS delete_user_id,test_case.delete_time,
|
||||
test_case.delete_user_id ,test_case.delete_time,
|
||||
project_version.name as versionName,
|
||||
project_version.id as versionId,
|
||||
<if test="request.selectFields != null and request.selectFields.size() > 0">
|
||||
|
@ -230,7 +230,7 @@
|
|||
test_case.custom_fields, test_case.ref_id
|
||||
</if>
|
||||
from test_case
|
||||
left join project_version on project_version.id = test_case.version_id and project_version.project_id = #{request.project_id}
|
||||
left join project_version on project_version.id = test_case.version_id and project_version.project_id = #{request.projectId}
|
||||
<include refid="queryWhereCondition"/>
|
||||
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.orders"/>
|
||||
</select>
|
||||
|
|
Loading…
Reference in New Issue