fix: 修复编辑场景时创建人变了的问题
--bug=1009528 --user=刘瑞斌 【接口测试】github#9217,场景创建人会自动修改 https://www.tapd.cn/55049933/s/1091319 Closes #9217
This commit is contained in:
parent
5b4c0d4d49
commit
36988fbbb4
|
@ -353,6 +353,7 @@ public class ApiAutomationService {
|
|||
deleteUpdateBodyFile(scenario, beforeScenario);
|
||||
List<ApiMethodUrlDTO> useUrl = this.parseUrl(scenario);
|
||||
scenario.setUseUrl(JSONArray.toJSONString(useUrl));
|
||||
scenario.setCreateUser(null);
|
||||
apiScenarioMapper.updateByPrimaryKeySelective(scenario);
|
||||
apiScenarioReferenceIdService.saveByApiScenario(scenario);
|
||||
extScheduleMapper.updateNameByResourceID(request.getId(), request.getName());// 修改场景name,同步到修改首页定时任务
|
||||
|
|
|
@ -306,6 +306,7 @@ public class ProjectService {
|
|||
this.checkProjectTcpPort(project);
|
||||
|
||||
project.setCreateTime(null);
|
||||
project.setCreateUser(null);
|
||||
project.setUpdateTime(System.currentTimeMillis());
|
||||
checkProjectExist(project);
|
||||
if (BooleanUtils.isTrue(project.getCustomNum())) {
|
||||
|
|
Loading…
Reference in New Issue