1
0

feat: 升级JDK到21

This commit is contained in:
2025-09-17 17:02:20 +08:00
parent 868feeb34d
commit 585b37a1cc
7 changed files with 96 additions and 9 deletions

View File

@@ -65,6 +65,19 @@ public class Stock extends SimpleEntity {
@ToString.Exclude
private Set<FinanceIndicator> indicators;
@Override
public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) return false;
Stock stock = (Stock) o;
return code.equals(stock.code);
}
@Override
public int hashCode() {
return code.hashCode();
}
@Getter
@AllArgsConstructor
public enum Market implements SimpleEnum {