fix: 更新场景时,创建人保持不变
This commit is contained in:
parent
a9262201bc
commit
7345c0546a
|
@ -320,7 +320,12 @@ public class ApiAutomationService {
|
|||
} else {
|
||||
scenario.setStatus(ScenarioStatus.Underway.name());
|
||||
}
|
||||
scenario.setUserId(SessionUtils.getUserId());
|
||||
if (StringUtils.isNotEmpty(request.getUserId())) {
|
||||
scenario.setUserId(request.getUserId());
|
||||
} else {
|
||||
scenario.setUserId(SessionUtils.getUserId());
|
||||
}
|
||||
|
||||
if (StringUtils.isEmpty(request.getApiScenarioModuleId()) || "default-module".equals(request.getApiScenarioModuleId())) {
|
||||
ApiScenarioModuleExample example = new ApiScenarioModuleExample();
|
||||
example.createCriteria().andProjectIdEqualTo(request.getProjectId()).andNameEqualTo("默认模块");
|
||||
|
|
Loading…
Reference in New Issue