fix(测试跟踪): 测试计划关联场景用例报错

--bug=1027977 --user=陈建星 【测试跟踪】新建测试计划-关联接口场景-选择所有数据-场景未添加到测试计划内 https://www.tapd.cn/55049933/s/1396413
This commit is contained in:
jianxing 2023-07-24 14:38:19 +08:00 committed by fit2-zhao
parent 065626102e
commit 7a1f43e5d6
1 changed files with 1 additions and 0 deletions

View File

@ -248,6 +248,7 @@ public class TestPlanScenarioCaseService {
testPlanApiScenario.setTestPlanId(request.getPlanId());
testPlanApiScenario.setCreateTime(System.currentTimeMillis());
testPlanApiScenario.setUpdateTime(System.currentTimeMillis());
newEnvMap.remove(null);
String environmentJson = JSON.toJSONString(newEnvMap);
if (StringUtils.equals(envType, EnvironmentType.JSON.name())) {
testPlanApiScenario.setEnvironment(environmentJson);