fix: --bug=1005183 --user=陈建星 【接口测试-接口定义】导入接口时责任人不存在此组织下,可以导入,导入后此字段外部显示为空 {#_orginal_url#}

This commit is contained in:
chenjianxing 2021-09-02 14:12:08 +08:00 committed by jianxing
parent d67adc686a
commit 4e7d5d2b9e
2 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,7 @@ import io.metersphere.base.domain.ApiDefinitionWithBLOBs;
import io.metersphere.base.domain.ApiModule;
import io.metersphere.base.domain.ApiTestCaseWithBLOBs;
import io.metersphere.commons.constants.ApiImportPlatform;
import io.metersphere.commons.utils.SessionUtils;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
@ -124,6 +125,9 @@ public class MsDefinitionParser extends MsAbstractParser<ApiDefinitionImport> {
JSONObject requestObj = JSONObject.parseObject(request);
requestObj.put("id", id);
apiDefinition.setRequest(JSONObject.toJSONString(requestObj));
apiDefinition.setCreateUser(SessionUtils.getUserId());
apiDefinition.setUserId(SessionUtils.getUserId());
apiDefinition.setDeleteUserId(null);
parseCase(caseMap, apiDefinition, importRequest, originId);
}

View File

@ -118,6 +118,7 @@
<ms-tag v-for="(itemName,index) in scope.row.tags" :key="index" type="success" effect="plain"
:show-tooltip="true" :content="itemName"
style="margin-left: 0px; margin-right: 2px"/>
<span/>
</template>
</ms-table-column>