fix: 场景描述无法保存

This commit is contained in:
chenjianxing 2021-03-31 17:40:24 +08:00
parent 9107a21d74
commit a2faa2bc87
1 changed files with 1 additions and 0 deletions

View File

@ -232,6 +232,7 @@ public class ApiAutomationService {
scenario.setPrincipal(request.getPrincipal()); scenario.setPrincipal(request.getPrincipal());
scenario.setStepTotal(request.getStepTotal()); scenario.setStepTotal(request.getStepTotal());
scenario.setUpdateTime(System.currentTimeMillis()); scenario.setUpdateTime(System.currentTimeMillis());
scenario.setDescription(request.getDescription());
scenario.setScenarioDefinition(JSON.toJSONString(request.getScenarioDefinition())); scenario.setScenarioDefinition(JSON.toJSONString(request.getScenarioDefinition()));
if (StringUtils.isNotEmpty(request.getStatus())) { if (StringUtils.isNotEmpty(request.getStatus())) {
scenario.setStatus(request.getStatus()); scenario.setStatus(request.getStatus());