JsgcghxkAttachmentNameEnum.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package com.siwei.apply.enums;
  2. import lombok.Getter;
  3. /**
  4. * 建设工程规划许可阶段
  5. */
  6. @Getter
  7. public enum JsgcghxkAttachmentNameEnum {
  8. NAME_1("1", "建设项目用地预审(选址意见书)申请报告", "", "用地报批阶段资料"),
  9. NAME_2("2", "项目建设依据", "", "用地报批阶段资料"),
  10. NAME_3("3", "测量报告", "", "用地报批阶段资料"),
  11. NAME_4("4", "相关规划图纸", "", "用地报批阶段资料"),
  12. NAME_5("5", "节地专章", "", "用地报批阶段资料"),
  13. NAME_6("6", "项目图形", "", "用地报批阶段资料"),
  14. NAME_7("7", "建设项目用地预审与选址意见书", "", "用地报批阶段资料");
  15. private final String code;
  16. private final String name;
  17. private final String relationName;
  18. private final String parentName;
  19. JsgcghxkAttachmentNameEnum(String code, String name, String relationName, String parentName) {
  20. this.code = code;
  21. this.name = name;
  22. this.relationName = relationName;
  23. this.parentName = parentName;
  24. }
  25. public String getName() {
  26. return this.name;
  27. }
  28. public String getCode() {
  29. return this.code;
  30. }
  31. public String getRelationName() {
  32. return this.relationName;
  33. }
  34. public String getParentName() {
  35. return this.parentName;
  36. }
  37. public static JsgcghxkAttachmentNameEnum fromCode(String code) {
  38. if (code == null) return null;
  39. for (JsgcghxkAttachmentNameEnum e : values()) {
  40. if (code.equals(e.code)) return e;
  41. }
  42. return null;
  43. }
  44. }