fix(接口测试): 其他协议导入覆盖时少补充了几个属性

--user=郭雨琦
This commit is contained in:
guoyuqi 2022-07-06 11:06:32 +08:00 committed by xiaomeinvG
parent b0979e27fd
commit 87d9b8fcfb
2 changed files with 11 additions and 3 deletions

View File

@ -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 -> {

View File

@ -781,6 +781,9 @@ public class ApiModuleService extends NodeTreeService<ApiModuleDTO> {
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<ApiModuleDTO> {
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);
}
});