GenConstants.java 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. package com.ruoyi.common.constant;
  2. /**
  3. * 代码生成通用常量
  4. *
  5. * @author ruoyi
  6. */
  7. public class GenConstants
  8. {
  9. /** 单表(增删改查) */
  10. public static final String TPL_CRUD = "crud";
  11. /** 树表(增删改查) */
  12. public static final String TPL_TREE = "tree";
  13. /** 主子表(增删改查) */
  14. public static final String TPL_SUB = "sub";
  15. /** 树编码字段 */
  16. public static final String TREE_CODE = "treeCode";
  17. /** 树父编码字段 */
  18. public static final String TREE_PARENT_CODE = "treeParentCode";
  19. /** 树名称字段 */
  20. public static final String TREE_NAME = "treeName";
  21. /** 上级菜单ID字段 */
  22. public static final String PARENT_MENU_ID = "parentMenuId";
  23. /** 上级菜单名称字段 */
  24. public static final String PARENT_MENU_NAME = "parentMenuName";
  25. /** 数据库字符串类型 */
  26. public static final String[] COLUMNTYPE_STR = { "char", "varchar", "nvarchar", "varchar2", "tinytext", "text",
  27. "mediumtext", "longtext" };
  28. /** 数据库时间类型 */
  29. public static final String[] COLUMNTYPE_TIME = { "datetime", "time", "date", "timestamp" };
  30. /** 数据库数字类型 */
  31. public static final String[] COLUMNTYPE_NUMBER = { "tinyint", "smallint", "mediumint", "int", "number", "integer",
  32. "bit", "bigint", "float", "float", "double", "decimal" };
  33. /** 页面不需要编辑字段 */
  34. public static final String[] COLUMNNAME_NOT_EDIT = { "id", "create_by", "create_time", "del_flag" };
  35. /** 页面不需要显示的列表字段 */
  36. public static final String[] COLUMNNAME_NOT_LIST = { "id", "create_by", "create_time", "del_flag", "update_by",
  37. "update_time" };
  38. /** 页面不需要查询字段 */
  39. public static final String[] COLUMNNAME_NOT_QUERY = { "id", "create_by", "create_time", "del_flag", "update_by",
  40. "update_time", "remark" };
  41. /** Entity基类字段 */
  42. public static final String[] BASE_ENTITY = { "createBy", "createTime", "updateBy", "updateTime", "remark" };
  43. /** Tree基类字段 */
  44. public static final String[] TREE_ENTITY = { "parentName", "parentId", "orderNum", "ancestors" };
  45. /** 文本框 */
  46. public static final String HTML_INPUT = "input";
  47. /** 文本域 */
  48. public static final String HTML_TEXTAREA = "textarea";
  49. /** 下拉框 */
  50. public static final String HTML_SELECT = "select";
  51. /** 单选框 */
  52. public static final String HTML_RADIO = "radio";
  53. /** 复选框 */
  54. public static final String HTML_CHECKBOX = "checkbox";
  55. /** 日期控件 */
  56. public static final String HTML_DATETIME = "datetime";
  57. /** 上传控件 */
  58. public static final String HTML_UPLOAD = "upload";
  59. /** 富文本控件 */
  60. public static final String HTML_SUMMERNOTE = "summernote";
  61. /** 字符串类型 */
  62. public static final String TYPE_STRING = "String";
  63. /** 整型 */
  64. public static final String TYPE_INTEGER = "Integer";
  65. /** 长整型 */
  66. public static final String TYPE_LONG = "Long";
  67. /** 浮点型 */
  68. public static final String TYPE_DOUBLE = "Double";
  69. /** 高精度计算类型 */
  70. public static final String TYPE_BIGDECIMAL = "BigDecimal";
  71. /** 时间类型 */
  72. public static final String TYPE_DATE = "Date";
  73. /** 模糊查询 */
  74. public static final String QUERY_LIKE = "LIKE";
  75. /** 需要 */
  76. public static final String REQUIRE = "1";
  77. }