fix(接口测试): 修复mock列表不显示请求类型的缺陷

--bug=1041186 --user=王孝刚 【接口测试】Mock列表的请求类型字段显示为空
https://www.tapd.cn/55049933/s/1520768
This commit is contained in:
wxg0103 2024-05-24 16:49:52 +08:00 committed by Craftsman
parent 5e170ed146
commit 4923c6d182
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
<select id="list" resultMap="ApiDefinitionMockDTO">
select
m.id, m.create_time, m.update_time, m.create_user, m.`name`, m.tags, m.`enable`, m.expect_num, m.project_id, m.status_code,
m.api_definition_id, u.name as create_user_name, d.path as api_path
m.api_definition_id, u.name as create_user_name, d.path as api_path, d.method as apiMethod
from api_definition_mock m
left join `api_definition` d on d.id = m.api_definition_id
left join `user` u on u.id = m.create_user