diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionImportUtilService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionImportUtilService.java index 46b95c485f..ffa973bc50 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionImportUtilService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionImportUtilService.java @@ -394,10 +394,8 @@ public class ApiDefinitionImportUtilService { private static void updateApiRequest(ImportRequest request, List updateRequestData, List updateModuleLists, ApiDefinitionMapper apiMapper, ApiDefinitionBlobMapper apiBlobMapper) { updateRequestData.forEach(t -> { ApiDefinition apiDefinition = new ApiDefinition(); - if (CollectionUtils.isNotEmpty(updateModuleLists) && updateModuleLists.contains(t.getId())) { - apiDefinition.setId(t.getId()); - apiDefinition.setUpdateUser(request.getUserId()); - } + apiDefinition.setId(t.getId()); + apiDefinition.setUpdateUser(request.getUserId()); apiDefinition.setUpdateTime(System.currentTimeMillis()); apiMapper.updateByPrimaryKeySelective(apiDefinition); //更新blob数据