From 028aef7c70079e18cce0c2f283691e93d1285dd8 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Wed, 23 Feb 2022 11:18:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E9=87=8C?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=88=97=E8=A1=A8=E5=88=9B=E5=BB=BA=E4=BA=BA?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E4=B8=BA=E5=85=B3=E8=81=94=E4=BA=BA=E7=9A=84?= =?UTF-8?q?=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010273 --user=宋天阳 [测试计划]github#10495v1.17.2测试计划执行报告,创建人不显示 https://www.tapd.cn/55049933/s/1108270 --- .../io/metersphere/base/mapper/ext/ExtTestPlanApiCaseMapper.xml | 2 +- .../base/mapper/ext/ExtTestPlanScenarioCaseMapper.xml | 2 +- .../components/mock/Components/MockApiScriptEditor.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanApiCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanApiCaseMapper.xml index c63a7c4114..5fd304b61c 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanApiCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanApiCaseMapper.xml @@ -50,7 +50,7 @@ c.update_user_id, c.num, c.tags, - t.create_user, + c.create_user_id as create_user, a.module_id, a.path, a.protocol, diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanScenarioCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanScenarioCaseMapper.xml index db964fec41..6054da233d 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanScenarioCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanScenarioCaseMapper.xml @@ -45,7 +45,7 @@ c. SCHEDULE, c.description, c.tags, - t.create_user, + c.create_user, c.project_id, c.num, c.custom_num, diff --git a/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue b/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue index 6b9d3b7b50..b51deb250a 100644 --- a/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue +++ b/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue @@ -193,7 +193,7 @@ export default { if (laguanges === "python") { returnScript = 'param=vars["body.${param}"]'; } else { - returnScript = 'var param=vars.get(body.${param}");\n' + + returnScript = 'var param=vars.get("body.${param}");\n' + '//如果对象是多层JSON,需要引入fastjson协助解析:\n' + '// 以"{\"name\":\"user\",\"rows\":[{\"type\":1}]}" 为demo,取rows第1个的type数据:\n' + 'import com.alibaba.fastjson.JSON;\n' +