From 9f48a79e6951eec560ed40b3aef752a5ee5689ae Mon Sep 17 00:00:00 2001 From: smallchill Date: Mon, 19 Jul 2021 16:08:15 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20Menu=E7=B1=BB=E9=87=8D=E5=86=99hashCode?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/springblade/system/entity/Menu.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/blade-service-api/blade-system-api/src/main/java/org/springblade/system/entity/Menu.java b/blade-service-api/blade-system-api/src/main/java/org/springblade/system/entity/Menu.java index 4a7795ab..70e738fc 100644 --- a/blade-service-api/blade-system-api/src/main/java/org/springblade/system/entity/Menu.java +++ b/blade-service-api/blade-system-api/src/main/java/org/springblade/system/entity/Menu.java @@ -28,6 +28,7 @@ import lombok.Data; import org.springblade.core.tool.utils.Func; import java.io.Serializable; +import java.util.Objects; /** * 实体类 @@ -139,4 +140,10 @@ public class Menu implements Serializable { return false; } + @Override + public int hashCode() { + return Objects.hash(id, parentId, code); + } + + }