Browse Source

Menu类重写hashCode方法

test
smallchill 4 years ago
parent
commit
9f48a79e69
  1. 7
      blade-service-api/blade-system-api/src/main/java/org/springblade/system/entity/Menu.java

7
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 org.springblade.core.tool.utils.Func;
import java.io.Serializable; import java.io.Serializable;
import java.util.Objects;
/** /**
* 实体类 * 实体类
@ -139,4 +140,10 @@ public class Menu implements Serializable {
return false; return false;
} }
@Override
public int hashCode() {
return Objects.hash(id, parentId, code);
}
} }

Loading…
Cancel
Save