fix(UI自动化): 修复元素库导入下载模板提示信息展示问题

--bug=1014993 --user=刘瑶 【UI测试】元素库-导入-下载模版-提示信息对应列不对-定位类型建议做成下拉选择 https://www.tapd.cn/55049933/s/1204366
This commit is contained in:
nathan.liu 2022-07-19 16:12:27 +08:00 committed by nathanliu2022
parent 10275df0b3
commit 605e7c763e
4 changed files with 13 additions and 14 deletions

View File

@ -195,7 +195,7 @@
<select id="selectByPrimaryKey" resultType="io.metersphere.base.domain.ModuleNode">
select
<include refid="io.metersphere.base.mapper.TestCaseNodeMapper.Base_Column_List" />
*
from ${tableName}
where id = #{id,jdbcType=VARCHAR}
</select>

View File

@ -365,7 +365,7 @@ public class BaseModuleService extends NodeTreeService<ModuleNodeDTO> {
moduleNode.setId(UUID.randomUUID().toString());
double pos = getNextLevelPos(projectId, level, pId);
moduleNode.setPos(pos);
extModuleNodeMapper.insert(tableName, moduleNode);
extModuleNodeMapper.insertWithModulePath(tableName, moduleNode);
return moduleNode.getId();
}
@ -431,8 +431,7 @@ public class BaseModuleService extends NodeTreeService<ModuleNodeDTO> {
moduleNode.setParentId(pId);
if (level <= 1 && StringUtils.isBlank(parentPath)) {
moduleNode.setModulePath("/" + rootNode.getName());
}
else {
} else {
moduleNode.setModulePath(parentPath + "/" + rootNode.getName());
}
updateNodes.add(moduleNode);

@ -1 +1 @@
Subproject commit 806edbbea6b2b3fffbb18b8fb83f4d293a1eed34
Subproject commit 9b3c05ac310942814b28e2433339e3303a5366e4

@ -1 +1 @@
Subproject commit d357c326a70088b0827ba1ced1d9cc035866170d
Subproject commit 1a5c65b84fb0c3cdce17b2671e6d80dc4e420337