|
|
|
@ -24,7 +24,7 @@ public class VelocityUtils
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 设置模板变量信息
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @return 模板列表
|
|
|
|
|
*/
|
|
|
|
|
public static VelocityContext prepareContext(GenTable genTable)
|
|
|
|
@ -93,7 +93,7 @@ public class VelocityUtils
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取模板信息
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @return 模板列表
|
|
|
|
|
*/
|
|
|
|
|
public static List<String> getTemplateList(String tplCategory)
|
|
|
|
@ -183,7 +183,7 @@ public class VelocityUtils
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取包前缀
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param packageName 包名称
|
|
|
|
|
* @return 包前缀名称
|
|
|
|
|
*/
|
|
|
|
@ -196,8 +196,8 @@ public class VelocityUtils
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据列类型获取导入包
|
|
|
|
|
*
|
|
|
|
|
* @param column 列集合
|
|
|
|
|
*
|
|
|
|
|
* @param columns 列集合
|
|
|
|
|
* @return 返回需要导入的包列表
|
|
|
|
|
*/
|
|
|
|
|
public static HashSet<String> getImportList(List<GenTableColumn> columns)
|
|
|
|
@ -220,7 +220,7 @@ public class VelocityUtils
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取权限前缀
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param moduleName 模块名称
|
|
|
|
|
* @param businessName 业务名称
|
|
|
|
|
* @return 返回权限前缀
|
|
|
|
@ -233,8 +233,8 @@ public class VelocityUtils
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取上级菜单ID字段
|
|
|
|
|
*
|
|
|
|
|
* @param options 生成其他选项
|
|
|
|
|
*
|
|
|
|
|
* @param paramsObj 生成其他选项
|
|
|
|
|
* @return 上级菜单ID字段
|
|
|
|
|
*/
|
|
|
|
|
public static String getParentMenuId(JSONObject paramsObj)
|
|
|
|
@ -248,8 +248,8 @@ public class VelocityUtils
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取树编码
|
|
|
|
|
*
|
|
|
|
|
* @param options 生成其他选项
|
|
|
|
|
*
|
|
|
|
|
* @param paramsObj 生成其他选项
|
|
|
|
|
* @return 树编码
|
|
|
|
|
*/
|
|
|
|
|
public static String getTreecode(JSONObject paramsObj)
|
|
|
|
@ -263,8 +263,8 @@ public class VelocityUtils
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取树父编码
|
|
|
|
|
*
|
|
|
|
|
* @param options 生成其他选项
|
|
|
|
|
*
|
|
|
|
|
* @param paramsObj 生成其他选项
|
|
|
|
|
* @return 树父编码
|
|
|
|
|
*/
|
|
|
|
|
public static String getTreeParentCode(JSONObject paramsObj)
|
|
|
|
@ -278,8 +278,8 @@ public class VelocityUtils
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取树名称
|
|
|
|
|
*
|
|
|
|
|
* @param options 生成其他选项
|
|
|
|
|
*
|
|
|
|
|
* @param paramsObj 生成其他选项
|
|
|
|
|
* @return 树名称
|
|
|
|
|
*/
|
|
|
|
|
public static String getTreeName(JSONObject paramsObj)
|
|
|
|
@ -293,7 +293,7 @@ public class VelocityUtils
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取需要在哪一列上面显示展开按钮
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param genTable 业务表对象
|
|
|
|
|
* @return 展开按钮列序号
|
|
|
|
|
*/
|
|
|
|
@ -317,4 +317,4 @@ public class VelocityUtils
|
|
|
|
|
}
|
|
|
|
|
return num;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|