fix: 修复编辑场景时创建人变了的问题

--bug=1009528 --user=刘瑞斌 【接口测试】github#9217,场景创建人会自动修改 https://www.tapd.cn/55049933/s/1091319

Closes #9217
This commit is contained in:
CaptainB 2022-01-13 14:36:49 +08:00 committed by 刘瑞斌
parent 5b4c0d4d49
commit 36988fbbb4
2 changed files with 2 additions and 0 deletions

View File

@ -353,6 +353,7 @@ public class ApiAutomationService {
deleteUpdateBodyFile(scenario, beforeScenario); deleteUpdateBodyFile(scenario, beforeScenario);
List<ApiMethodUrlDTO> useUrl = this.parseUrl(scenario); List<ApiMethodUrlDTO> useUrl = this.parseUrl(scenario);
scenario.setUseUrl(JSONArray.toJSONString(useUrl)); scenario.setUseUrl(JSONArray.toJSONString(useUrl));
scenario.setCreateUser(null);
apiScenarioMapper.updateByPrimaryKeySelective(scenario); apiScenarioMapper.updateByPrimaryKeySelective(scenario);
apiScenarioReferenceIdService.saveByApiScenario(scenario); apiScenarioReferenceIdService.saveByApiScenario(scenario);
extScheduleMapper.updateNameByResourceID(request.getId(), request.getName());// 修改场景name同步到修改首页定时任务 extScheduleMapper.updateNameByResourceID(request.getId(), request.getName());// 修改场景name同步到修改首页定时任务

View File

@ -306,6 +306,7 @@ public class ProjectService {
this.checkProjectTcpPort(project); this.checkProjectTcpPort(project);
project.setCreateTime(null); project.setCreateTime(null);
project.setCreateUser(null);
project.setUpdateTime(System.currentTimeMillis()); project.setUpdateTime(System.currentTimeMillis());
checkProjectExist(project); checkProjectExist(project);
if (BooleanUtils.isTrue(project.getCustomNum())) { if (BooleanUtils.isTrue(project.getCustomNum())) {