|
@@ -1,6 +1,7 @@
|
|
|
package com.izouma.uwip.domain;
|
|
package com.izouma.uwip.domain;
|
|
|
|
|
|
|
|
import com.alibaba.excel.annotation.ExcelIgnore;
|
|
import com.alibaba.excel.annotation.ExcelIgnore;
|
|
|
|
|
+import com.izouma.uwip.converter.StringArrayConverter;
|
|
|
import com.izouma.uwip.dto.MenuDTO;
|
|
import com.izouma.uwip.dto.MenuDTO;
|
|
|
import com.izouma.uwip.security.Authority;
|
|
import com.izouma.uwip.security.Authority;
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
@@ -40,6 +41,10 @@ public class Menu extends BaseEntity implements Serializable {
|
|
|
|
|
|
|
|
private String category;
|
|
private String category;
|
|
|
|
|
|
|
|
|
|
+ @Convert(converter = StringArrayConverter.class)
|
|
|
|
|
+ @Column(columnDefinition = "TEXT")
|
|
|
|
|
+ private List<String> subUrl;
|
|
|
|
|
+
|
|
|
@OneToMany
|
|
@OneToMany
|
|
|
@JoinColumn(name = "parent", insertable = false, updatable = false, foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
|
|
@JoinColumn(name = "parent", insertable = false, updatable = false, foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
|
|
|
List<Menu> children;
|
|
List<Menu> children;
|
|
@@ -63,6 +68,7 @@ public class Menu extends BaseEntity implements Serializable {
|
|
|
.enabled(menuDTO.getEnabled())
|
|
.enabled(menuDTO.getEnabled())
|
|
|
.active(menuDTO.getActive())
|
|
.active(menuDTO.getActive())
|
|
|
.category(menuDTO.getCategory())
|
|
.category(menuDTO.getCategory())
|
|
|
|
|
+ .subUrl(menuDTO.getSubUrl())
|
|
|
.children(null)
|
|
.children(null)
|
|
|
.build();
|
|
.build();
|
|
|
menu.setId(menuDTO.getId());
|
|
menu.setId(menuDTO.getId());
|