diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java index 8247f163ee..9e0b770e08 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -959,9 +959,11 @@ public class ApiDefinitionService { apiDefinition.setUserId(existApi.getUserId()); } //Check whether the content has changed, if not, do not change the creation time - Boolean toChangeTime = checkIsSynchronize(existApi, apiDefinition); - if (!toChangeTime) { - apiDefinition.setUpdateTime(existApi.getUpdateTime()); + if (apiDefinition.getProtocol().equals("HTTP")) { + Boolean toChangeTime = checkIsSynchronize(existApi, apiDefinition); + if (!toChangeTime) { + apiDefinition.setUpdateTime(existApi.getUpdateTime()); + } } // case 设置版本 cases.forEach(c -> { diff --git a/backend/src/main/java/io/metersphere/api/service/ApiModuleService.java b/backend/src/main/java/io/metersphere/api/service/ApiModuleService.java index a433c5f058..3a539b1ed3 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiModuleService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiModuleService.java @@ -781,6 +781,9 @@ public class ApiModuleService extends NodeTreeService { apiDefinitionWithBLOBs.setModulePath(v.getModulePath()); apiDefinitionWithBLOBs.setNum(v.getNum()); apiDefinitionWithBLOBs.setStatus(v.getStatus()); + apiDefinitionWithBLOBs.setOrder(v.getOrder()); + apiDefinitionWithBLOBs.setRefId(v.getRefId()); + apiDefinitionWithBLOBs.setLatest(v.getLatest()); toUpdateList.add(apiDefinitionWithBLOBs); } }); @@ -798,6 +801,9 @@ public class ApiModuleService extends NodeTreeService { apiDefinitionWithBLOBs.setVersionId(v.getVersionId()); apiDefinitionWithBLOBs.setNum(v.getNum()); apiDefinitionWithBLOBs.setStatus(v.getStatus()); + apiDefinitionWithBLOBs.setOrder(v.getOrder()); + apiDefinitionWithBLOBs.setRefId(v.getRefId()); + apiDefinitionWithBLOBs.setLatest(v.getLatest()); toUpdateList.add(apiDefinitionWithBLOBs); } });