GenConstants.java 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 TREE_CODE = "treeCode";
  15. /** 树父编码字段 */
  16. public static final String TREE_PARENT_CODE = "treeParentCode";
  17. /** 树名称字段 */
  18. public static final String TREE_NAME = "treeName";
  19. /** 数据库字符串类型 */
  20. public static final String[] COLUMNTYPE_STR = { "char", "varchar", "narchar", "varchar2", "tinytext", "text",
  21. "mediumtext", "longtext" };
  22. /** 数据库时间类型 */
  23. public static final String[] COLUMNTYPE_TIME = { "datetime", "time", "date", "timestamp" };
  24. /** 数据库数字类型 */
  25. public static final String[] COLUMNTYPE_NUMBER = { "tinyint", "smallint", "mediumint", "int", "number", "integer",
  26. "bigint", "float", "float", "double", "decimal" };
  27. /** 页面不需要编辑字段 */
  28. public static final String[] COLUMNNAME_NOT_EDIT = { "id", "create_by", "create_time", "del_flag" };
  29. /** 页面不需要显示的列表字段 */
  30. public static final String[] COLUMNNAME_NOT_LIST = { "id", "create_by", "create_time", "del_flag", "update_by",
  31. "update_time" };
  32. /** 页面不需要查询字段 */
  33. public static final String[] COLUMNNAME_NOT_QUERY = { "id", "create_by", "create_time", "del_flag", "update_by",
  34. "update_time", "remark" };
  35. /** Entity基类字段 */
  36. public static final String[] BASE_ENTITY = { "createBy", "createTime", "updateBy", "updateTime", "remark" };
  37. /** Tree基类字段 */
  38. public static final String[] TREE_ENTITY = { "parentName", "parentId", "orderNum", "ancestors", "children" };
  39. /** 文本框 */
  40. public static final String HTML_INPUT = "input";
  41. /** 文本域 */
  42. public static final String HTML_TEXTAREA = "textarea";
  43. /** 下拉框 */
  44. public static final String HTML_SELECT = "select";
  45. /** 单选框 */
  46. public static final String HTML_RADIO = "radio";
  47. /** 复选框 */
  48. public static final String HTML_CHECKBOX = "checkbox";
  49. /** 日期控件 */
  50. public static final String HTML_DATETIME = "datetime";
  51. /** 字符串类型 */
  52. public static final String TYPE_STRING = "String";
  53. /** 整型 */
  54. public static final String TYPE_INTEGER = "Integer";
  55. /** 长整型 */
  56. public static final String TYPE_LONG = "Long";
  57. /** 浮点型 */
  58. public static final String TYPE_DOUBLE = "Double";
  59. /** 高精度计算类型 */
  60. public static final String TYPE_BIGDECIMAL = "BigDecimal";
  61. /** 时间类型 */
  62. public static final String TYPE_DATE = "Date";
  63. /** 模糊查询 */
  64. public static final String QUERY_LIKE = "LIKE";
  65. /** 需要 */
  66. public static final String REQUIRE = "1";
  67. }