(improvement)(Headless) The model list does not return details to improve performance (#870)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2024-04-02 11:01:34 +08:00
committed by GitHub
parent 3dcbdb28ad
commit 10501b2d86
15 changed files with 106 additions and 55 deletions

View File

@@ -41,14 +41,13 @@ public class SchemaItem extends RecordInfo {
}
SchemaItem that = (SchemaItem) o;
return Objects.equal(id, that.id) && Objects.equal(name, that.name)
&& Objects.equal(bizName, that.bizName) && Objects.equal(
description, that.description) && Objects.equal(status, that.status)
&& typeEnum == that.typeEnum && Objects.equal(sensitiveLevel, that.sensitiveLevel);
&& Objects.equal(bizName, that.bizName)
&& typeEnum == that.typeEnum;
}
@Override
public int hashCode() {
return Objects.hashCode(id, name, bizName, description, status, typeEnum, sensitiveLevel);
return Objects.hashCode(id, name, bizName, typeEnum);
}
public static List<String> getAliasList(String alias) {

View File

@@ -14,6 +14,7 @@ import org.springframework.util.CollectionUtils;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;
@@ -87,4 +88,19 @@ public class ModelResp extends SchemaItem {
return fieldSet;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), domainId);
}
}