Merge remote-tracking branch 'remotes/origin/dev' into test

yun-zuoyi
Silliter 6 years ago
commit 0c12793473

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

@ -281,4 +281,20 @@ public final class FormHqlPack {
return ddlPackBean; return ddlPackBean;
} }
/**
* id
* @param methodIds id
* @param status
* @return
*/
public static DdlPackBean findBfMenuByMethodIdsAndStatus(Long[] methodIds, int status) {
DdlPackBean ddlPackBean = new DdlPackBean();
DdlPreparedPack.getInPackArray(methodIds, "methodId", ddlPackBean);
DdlPreparedPack.getNumEqualPack(status, "menuStatus", ddlPackBean);
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue(), "isDeleted", ddlPackBean);
return ddlPackBean;
}
} }

@ -69,6 +69,9 @@ public class MesHqlPack {
mesPlanOrder.getCreateDateTimeStart(), mesPlanOrder.getCreateDateTimeStart(),
mesPlanOrder.getCreateDateTimeEnd(), mesPlanOrder.getCreateDateTimeEnd(),
"createDateTime", packBean, true); "createDateTime", packBean, true);
// 排序
DdlPreparedPack.getOrderByPack(new Object[]{"2"},new String[]{mesPlanOrder.getOrderByParam()} , packBean);
DdlPreparedPack.getOrderDefault(mesPlanOrder);
return packBean; return packBean;
} }

@ -27,7 +27,9 @@ import java.util.List;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
//@Table(name="SYS_MENU",indexes = {@Index(name="索引名称",columnList = "列名1,列名2")}) //@Table(name="SYS_MENU",indexes = {@Index(name="索引名称",columnList = "列名1,列名2")})
@Table(name="SYS_MENU") @Table(name="SYS_MENU",indexes = {
@Index(name="index_sys_menu_parent_id",columnList = "PARENT_ID"),
})
@Api(value="系统功能",description = "系统功能") @Api(value="系统功能",description = "系统功能")
public class SysMenu extends BaseBean { public class SysMenu extends BaseBean {

Loading…
Cancel
Save