疯狂的狮子li
2022-02-14 ee2f74dc5e8495e82dd2a3c27e1ac37849c8c455
ruoyi-common/src/main/java/com/ruoyi/common/constant/GenConstants.java
@@ -5,184 +5,189 @@
 *
 * @author ruoyi
 */
public class GenConstants {
public interface GenConstants {
    /**
     * 单表(增删改查)
     */
    public static final String TPL_CRUD = "crud";
    String TPL_CRUD = "crud";
    /**
     * 树表(增删改查)
     */
    public static final String TPL_TREE = "tree";
    String TPL_TREE = "tree";
    /**
     * 主子表(增删改查)
     */
    public static final String TPL_SUB = "sub";
    String TPL_SUB = "sub";
    /**
     * 树编码字段
     */
    public static final String TREE_CODE = "treeCode";
    String TREE_CODE = "treeCode";
    /**
     * 树父编码字段
     */
    public static final String TREE_PARENT_CODE = "treeParentCode";
    String TREE_PARENT_CODE = "treeParentCode";
    /**
     * 树名称字段
     */
    public static final String TREE_NAME = "treeName";
    String TREE_NAME = "treeName";
    /**
     * 上级菜单ID字段
     */
    public static final String PARENT_MENU_ID = "parentMenuId";
    String PARENT_MENU_ID = "parentMenuId";
    /**
     * 上级菜单名称字段
     */
    public static final String PARENT_MENU_NAME = "parentMenuName";
    String PARENT_MENU_NAME = "parentMenuName";
    /**
     * 数据库字符串类型
     */
    public static final String[] COLUMNTYPE_STR = {"char", "varchar", "nvarchar", "varchar2"};
    String[] COLUMNTYPE_STR = {"char", "varchar", "nvarchar", "varchar2"};
    /**
     * 数据库文本类型
     */
    public static final String[] COLUMNTYPE_TEXT = {"tinytext", "text", "mediumtext", "longtext"};
    String[] COLUMNTYPE_TEXT = {"tinytext", "text", "mediumtext", "longtext"};
    /**
     * 数据库时间类型
     */
    public static final String[] COLUMNTYPE_TIME = {"datetime", "time", "date", "timestamp"};
    String[] COLUMNTYPE_TIME = {"datetime", "time", "date", "timestamp"};
    /**
     * 数据库数字类型
     */
    public static final String[] COLUMNTYPE_NUMBER = {"tinyint", "smallint", "mediumint", "int", "number", "integer",
            "bit", "bigint", "float", "double", "decimal"};
    String[] COLUMNTYPE_NUMBER = {"tinyint", "smallint", "mediumint", "int", "number", "integer",
        "bit", "bigint", "float", "double", "decimal"};
    /**
     * BO对象 不需要添加字段
     */
    public static final String[] COLUMNNAME_NOT_ADD = {"create_by", "create_time", "del_flag", "update_by",
            "update_time", "version"};
    String[] COLUMNNAME_NOT_ADD = {"create_by", "create_time", "del_flag", "update_by",
        "update_time", "version"};
    /**
     * BO对象 不需要编辑字段
     */
    public static final String[] COLUMNNAME_NOT_EDIT = {"create_by", "create_time", "del_flag", "update_by",
            "update_time", "version"};
    String[] COLUMNNAME_NOT_EDIT = {"create_by", "create_time", "del_flag", "update_by",
        "update_time", "version"};
    /**
     * VO对象 不需要返回字段
     */
    public static final String[] COLUMNNAME_NOT_LIST = {"create_by", "create_time", "del_flag", "update_by",
            "update_time", "version"};
    String[] COLUMNNAME_NOT_LIST = {"create_by", "create_time", "del_flag", "update_by",
        "update_time", "version"};
    /**
     * BO对象 不需要查询字段
     */
    public static final String[] COLUMNNAME_NOT_QUERY = {"id", "create_by", "create_time", "del_flag", "update_by",
            "update_time", "remark", "version"};
    String[] COLUMNNAME_NOT_QUERY = {"id", "create_by", "create_time", "del_flag", "update_by",
        "update_time", "remark", "version"};
    /**
     * Entity基类字段
     */
    public static final String[] BASE_ENTITY = {"createBy", "createTime", "updateBy", "updateTime"};
    String[] BASE_ENTITY = {"createBy", "createTime", "updateBy", "updateTime"};
    /**
     * Tree基类字段
     */
    public static final String[] TREE_ENTITY = {"parentName", "parentId", "children"};
    String[] TREE_ENTITY = {"parentName", "parentId", "children"};
    /**
     * 文本框
     */
    public static final String HTML_INPUT = "input";
    String HTML_INPUT = "input";
    /**
     * 文本域
     */
    public static final String HTML_TEXTAREA = "textarea";
    String HTML_TEXTAREA = "textarea";
    /**
     * 下拉框
     */
    public static final String HTML_SELECT = "select";
    String HTML_SELECT = "select";
    /**
     * 单选框
     */
    public static final String HTML_RADIO = "radio";
    String HTML_RADIO = "radio";
    /**
     * 复选框
     */
    public static final String HTML_CHECKBOX = "checkbox";
    String HTML_CHECKBOX = "checkbox";
    /**
     * 日期控件
     */
    public static final String HTML_DATETIME = "datetime";
    String HTML_DATETIME = "datetime";
    /**
     * 图片上传控件
     */
    public static final String HTML_IMAGE_UPLOAD = "imageUpload";
    String HTML_IMAGE_UPLOAD = "imageUpload";
    /**
     * 文件上传控件
     */
    public static final String HTML_FILE_UPLOAD = "fileUpload";
    String HTML_FILE_UPLOAD = "fileUpload";
    /**
     * 富文本控件
     */
    public static final String HTML_EDITOR = "editor";
    String HTML_EDITOR = "editor";
    /**
     * 字符串类型
     */
    public static final String TYPE_STRING = "String";
    String TYPE_STRING = "String";
    /**
     * 整型
     */
    public static final String TYPE_INTEGER = "Integer";
    String TYPE_INTEGER = "Integer";
    /**
     * 长整型
     */
    public static final String TYPE_LONG = "Long";
    String TYPE_LONG = "Long";
    /**
     * 浮点型
     */
    public static final String TYPE_DOUBLE = "Double";
    String TYPE_DOUBLE = "Double";
    /**
     * 高精度计算类型
     */
    public static final String TYPE_BIGDECIMAL = "BigDecimal";
    String TYPE_BIGDECIMAL = "BigDecimal";
    /**
     * 时间类型
     */
    public static final String TYPE_DATE = "Date";
    String TYPE_DATE = "Date";
    /**
     * 模糊查询
     */
    public static final String QUERY_LIKE = "LIKE";
    String QUERY_LIKE = "LIKE";
    /**
     * 相等查询
     */
    String QUERY_EQ = "EQ";
    /**
     * 需要
     */
    public static final String REQUIRE = "1";
    String REQUIRE = "1";
}