parent
b0979e27fd
commit
87d9b8fcfb
|
@ -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 -> {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue