114 lines
2.8 KiB
Java
114 lines
2.8 KiB
Java
package com.ruoyi.common.constant;
|
|
|
|
/**
|
|
* 代码生成通用常量
|
|
*
|
|
* @author ruoyi
|
|
*/
|
|
public class GenConstants {
|
|
|
|
/**
|
|
* 树编码字段
|
|
*/
|
|
public static final String TREE_CODE = "treeCode";
|
|
|
|
/**
|
|
* 树父编码字段
|
|
*/
|
|
public static final String TREE_PARENT_CODE = "treeParentCode";
|
|
|
|
/**
|
|
* 树名称字段
|
|
*/
|
|
public static final String TREE_NAME = "treeName";
|
|
|
|
/**
|
|
* 上级菜单ID字段
|
|
*/
|
|
public static final String PARENT_MENU_ID = "parentMenuId";
|
|
|
|
/**
|
|
* 上级菜单名称字段
|
|
*/
|
|
public static final String PARENT_MENU_NAME = "parentMenuName";
|
|
|
|
/**
|
|
* 数据库字符串类型
|
|
*/
|
|
public static final String[] COLUMNTYPE_STR = {"char", "varchar", "nvarchar", "varchar2"};
|
|
|
|
/**
|
|
* 数据库文本类型
|
|
*/
|
|
public static final String[] COLUMNTYPE_TEXT = {"tinytext", "text", "mediumtext", "longtext"};
|
|
|
|
/**
|
|
* 数据库时间类型
|
|
*/
|
|
public static final String[] COLUMNTYPE_TIME = {"datetime", "time", "date", "timestamp"};
|
|
|
|
/**
|
|
* 数据库数字类型
|
|
*/
|
|
public static final String[] COLUMNTYPE_NUMBER = {"tinyint", "smallint", "mediumint", "int", "number", "integer",
|
|
"bit", "bigint", "float", "double", "decimal"};
|
|
|
|
/**
|
|
* 页面不需要编辑字段
|
|
*/
|
|
public static final String[] COLUMNNAME_NOT_EDIT = {"id", "create_by", "create_time", "del_flag"};
|
|
|
|
/**
|
|
* 页面不需要显示的列表字段
|
|
*/
|
|
public static final String[] COLUMNNAME_NOT_LIST = {"id", "create_by", "create_time", "del_flag", "update_by",
|
|
"update_time"};
|
|
|
|
/**
|
|
* 页面不需要查询字段
|
|
*/
|
|
public static final String[] COLUMNNAME_NOT_QUERY = {"id", "create_by", "create_time", "del_flag", "update_by",
|
|
"update_time", "remark"};
|
|
|
|
/**
|
|
* Entity基类字段
|
|
*/
|
|
public static final String[] BASE_ENTITY = {"createBy", "createTime", "updateBy", "updateTime", "remark"};
|
|
|
|
/**
|
|
* Tree基类字段
|
|
*/
|
|
public static final String[] TREE_ENTITY = {"parentName", "parentId", "orderNum", "ancestors", "children"};
|
|
|
|
/**
|
|
* 字符串类型
|
|
*/
|
|
public static final String TYPE_STRING = "String";
|
|
|
|
/**
|
|
* 整型
|
|
*/
|
|
public static final String TYPE_INTEGER = "Integer";
|
|
|
|
/**
|
|
* 长整型
|
|
*/
|
|
public static final String TYPE_LONG = "Long";
|
|
|
|
/**
|
|
* 浮点型
|
|
*/
|
|
public static final String TYPE_DOUBLE = "Double";
|
|
|
|
/**
|
|
* 高精度计算类型
|
|
*/
|
|
public static final String TYPE_BIGDECIMAL = "BigDecimal";
|
|
|
|
/**
|
|
* 时间类型
|
|
*/
|
|
public static final String TYPE_DATE = "Date";
|
|
|
|
}
|