fix(接口测试): 修复接口导入覆盖数据,更新时间没有修改的缺陷
--bug=1037842 --user=王孝刚 【接口测试】swagger导入接口-覆盖,接口参数被更新后,接口的更新时间没变 https://www.tapd.cn/55049933/s/1484565
This commit is contained in:
parent
68afead5d5
commit
94d3c0db07
|
@ -298,13 +298,13 @@ public class ApiDefinitionImportUtilService {
|
|||
List<LogDTO> operationLogs = new ArrayList<>();
|
||||
List<ApiDefinitionImportDetail> updateRequestData = apiDetailWithDataUpdate.getUpdateRequestData();
|
||||
updateRequestData.forEach(t -> {
|
||||
ApiDefinition apiDefinition = new ApiDefinition();
|
||||
if (CollectionUtils.isNotEmpty(updateModuleLists) && updateModuleLists.contains(t.getId())) {
|
||||
ApiDefinition apiDefinition = new ApiDefinition();
|
||||
apiDefinition.setId(t.getId());
|
||||
apiDefinition.setUpdateUser(request.getUserId());
|
||||
apiDefinition.setUpdateTime(System.currentTimeMillis());
|
||||
apiMapper.updateByPrimaryKeySelective(apiDefinition);
|
||||
}
|
||||
apiDefinition.setUpdateTime(System.currentTimeMillis());
|
||||
apiMapper.updateByPrimaryKeySelective(apiDefinition);
|
||||
//更新blob数据
|
||||
ApiDefinitionBlob apiDefinitionBlob = new ApiDefinitionBlob();
|
||||
apiDefinitionBlob.setId(t.getId());
|
||||
|
|
Loading…
Reference in New Issue