fix(接口测试): 修复历史场景的复制的接口无法另存为case的缺陷
--bug=1020554 --user=王孝刚 【接口测试】历史场景里复制的接口定义另存为新用例后在接口-CASE列表里看不到 https://www.tapd.cn/55049933/s/1311192
This commit is contained in:
parent
ebf01d89b4
commit
50a5bd437d
|
@ -80,6 +80,7 @@ public class MsHashTreeService {
|
|||
private static final String ASSERTIONS = ElementConstants.ASSERTIONS;
|
||||
public static final String CUSTOM_NUM = "customNum";
|
||||
public static final String SHOW_CUSTOM_NUM = "showCustomNum";
|
||||
public static final String VERSION_ID = "versionId";
|
||||
|
||||
public void setHashTree(JSONArray hashTree) {
|
||||
// 将引用转成复制
|
||||
|
@ -181,6 +182,7 @@ public class MsHashTreeService {
|
|||
if (definition != null) {
|
||||
Project project = projectMapper.selectByPrimaryKey(definition.getProjectId());
|
||||
element.put(ID, definition.getId());
|
||||
element.put(VERSION_ID, definition.getVersionId());
|
||||
this.setElement(element, definition.getNum(), enable, definition.getVersionName(), project.getVersionEnable());
|
||||
isExist = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue