|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package cn.estsh.i3plus.pojo.form.bean;
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
@ -10,10 +11,7 @@ import lombok.EqualsAndHashCode;
|
|
|
|
|
import org.hibernate.annotations.DynamicInsert;
|
|
|
|
|
import org.hibernate.annotations.DynamicUpdate;
|
|
|
|
|
|
|
|
|
|
import javax.persistence.Column;
|
|
|
|
|
import javax.persistence.Entity;
|
|
|
|
|
import javax.persistence.Table;
|
|
|
|
|
import javax.persistence.Transient;
|
|
|
|
|
import javax.persistence.*;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -28,7 +26,9 @@ import java.util.List;
|
|
|
|
|
@DynamicInsert
|
|
|
|
|
@DynamicUpdate
|
|
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
|
|
@Table(name="BF_MENU")
|
|
|
|
|
@Table(name="BF_MENU",indexes = {
|
|
|
|
|
@Index(name="index_bf_menu_parent_id",columnList = "PARENT_ID"),
|
|
|
|
|
})
|
|
|
|
|
@Api(value="表单菜单目录",description = "表单菜单目录")
|
|
|
|
|
public class BfMenu extends BaseBean {
|
|
|
|
|
|
|
|
|
@ -41,6 +41,14 @@ public class BfMenu extends BaseBean {
|
|
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
|
private Long parentId;
|
|
|
|
|
|
|
|
|
|
public long getParentIdVal(){
|
|
|
|
|
if(parentId == null){
|
|
|
|
|
return CommonEnumUtil.PARENT.DEFAULT.getValue().longValue();
|
|
|
|
|
} else {
|
|
|
|
|
return parentId.longValue();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Column(name="PARENT_NAME_RDD")
|
|
|
|
|
@ApiParam(value ="父级菜单名称")
|
|
|
|
|
private String parentNameRdd;
|
|
|
|
@ -80,6 +88,10 @@ public class BfMenu extends BaseBean {
|
|
|
|
|
private Integer menuStatus;
|
|
|
|
|
|
|
|
|
|
@Transient
|
|
|
|
|
@ApiParam(value = "菜单状态")
|
|
|
|
|
@ApiParam(value = "菜单子集")
|
|
|
|
|
private List<BfMenu> bfMenuList;
|
|
|
|
|
|
|
|
|
|
@Transient
|
|
|
|
|
@ApiParam(value = "菜单父级")
|
|
|
|
|
private List<BfMenu> parentBfMenuList;
|
|
|
|
|
}
|
|
|
|
|