FlowApproveVariableEnum.java 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //package com.qmth.teachcloud.common.enums;
  2. //
  3. //import java.util.Objects;
  4. //
  5. ///**
  6. // * @Description: 流程审批变量 enum
  7. // * @Param:
  8. // * @return:
  9. // * @Author: wangliang
  10. // * @Date: 2021/8/2
  11. // */
  12. //public enum FlowApproveVariableEnum {
  13. //
  14. // PRIMARY_APPROVE("一级审核通过", "1"),
  15. //
  16. // PRIMARY_REJECT("一级审核驳回", "0"),
  17. //
  18. // SECOND_APPROVE("二级审核通过", "2"),
  19. //
  20. // SECOND_REJECT_ONE("二级审核驳回至第一节点", "0"),
  21. //
  22. // SECOND_REJECT_TWO("二级审核驳回至第二节点", "1"),
  23. //
  24. // THREE_APPROVE("三级审核通过", "3"),
  25. //
  26. // FOUR_APPROVE("四级审核通过", "1"),
  27. //
  28. // FOUR_REJECT("四级审核驳回", "0");
  29. //
  30. // private String title;
  31. //
  32. // private String id;
  33. //
  34. // private FlowApproveVariableEnum(String title, String id) {
  35. // this.title = title;
  36. // this.id = id;
  37. // }
  38. //
  39. // public String getTitle() {
  40. // return title;
  41. // }
  42. //
  43. // public String getId() {
  44. // return id;
  45. // }
  46. //
  47. // /**
  48. // * 状态转换 toName
  49. // *
  50. // * @param title
  51. // * @return
  52. // */
  53. // public static String convertToName(String title) {
  54. // for (FlowApproveVariableEnum e : FlowApproveVariableEnum.values()) {
  55. // if (Objects.equals(title, e.getTitle())) {
  56. // return e.name();
  57. // }
  58. // }
  59. // return null;
  60. // }
  61. //
  62. // /**
  63. // * 状态转换 toInstance
  64. // *
  65. // * @param id
  66. // * @return
  67. // */
  68. // public static FlowApproveVariableEnum convertToInstance(String id) {
  69. // for (FlowApproveVariableEnum e : FlowApproveVariableEnum.values()) {
  70. // if (Objects.equals(id, e.getTitle())) {
  71. // return e;
  72. // }
  73. // }
  74. // return null;
  75. // }
  76. //}