fix(接口定义): 修复复制的场景查看引用场景不正确的缺陷
--bug=1018000 --user=王孝刚 【接口测试】接口自动化查看引用显示引用场景不正确 https://www.tapd.cn/55049933/s/1261545
This commit is contained in:
parent
7a6d38bb71
commit
e24cc842a1
|
@ -459,6 +459,7 @@ public class ApiScenarioService {
|
||||||
scenario.setUpdateTime(System.currentTimeMillis());
|
scenario.setUpdateTime(System.currentTimeMillis());
|
||||||
scenario.setDescription(request.getDescription());
|
scenario.setDescription(request.getDescription());
|
||||||
scenario.setCreateUser(SessionUtils.getUserId());
|
scenario.setCreateUser(SessionUtils.getUserId());
|
||||||
|
request.getScenarioDefinition().setId(scenario.getId());
|
||||||
scenario.setScenarioDefinition(JSON.toJSONString(request.getScenarioDefinition()));
|
scenario.setScenarioDefinition(JSON.toJSONString(request.getScenarioDefinition()));
|
||||||
Boolean isValidEnum = EnumUtils.isValidEnum(EnvironmentType.class, request.getEnvironmentType());
|
Boolean isValidEnum = EnumUtils.isValidEnum(EnvironmentType.class, request.getEnvironmentType());
|
||||||
if (BooleanUtils.isTrue(isValidEnum)) {
|
if (BooleanUtils.isTrue(isValidEnum)) {
|
||||||
|
|
Loading…
Reference in New Issue