OrgTechCenter.java 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. package com.goafanti.common.model;
  2. import java.util.Date;
  3. import org.apache.commons.lang3.StringUtils;
  4. import org.apache.commons.lang3.time.DateFormatUtils;
  5. import com.fasterxml.jackson.annotation.JsonIgnore;
  6. import com.goafanti.common.constant.AFTConstants;
  7. import com.goafanti.common.utils.FileUtils;
  8. public class OrgTechCenter {
  9. private String id;
  10. private String uid;
  11. /**
  12. * 技术中心新名称
  13. */
  14. private String centerName;
  15. /**
  16. * 成立时间
  17. */
  18. private Date foundingTime;
  19. /**
  20. * 负责人
  21. */
  22. private String principal;
  23. /**
  24. * 备注
  25. */
  26. private String comment;
  27. /**
  28. * 制度目录URL
  29. */
  30. private String systemUrl;
  31. /**
  32. * 删除标记
  33. */
  34. private Integer deletedSign;
  35. /**
  36. * 制度目录
  37. */
  38. private String systemCatalog;
  39. public String getId() {
  40. return id;
  41. }
  42. public void setId(String id) {
  43. this.id = id;
  44. }
  45. public String getUid() {
  46. return uid;
  47. }
  48. public void setUid(String uid) {
  49. this.uid = uid;
  50. }
  51. public String getCenterName() {
  52. return centerName;
  53. }
  54. public void setCenterName(String centerName) {
  55. this.centerName = centerName;
  56. }
  57. public Date getFoundingTime() {
  58. return foundingTime;
  59. }
  60. public void setFoundingTime(Date foundingTime) {
  61. this.foundingTime = foundingTime;
  62. }
  63. public String getPrincipal() {
  64. return principal;
  65. }
  66. public void setPrincipal(String principal) {
  67. this.principal = principal;
  68. }
  69. public String getSystemUrl() {
  70. return systemUrl;
  71. }
  72. public void setSystemUrl(String systemUrl) {
  73. this.systemUrl = systemUrl;
  74. }
  75. @JsonIgnore
  76. public Integer getDeletedSign() {
  77. return deletedSign;
  78. }
  79. public void setDeletedSign(Integer deletedSign) {
  80. this.deletedSign = deletedSign;
  81. }
  82. public String getSystemCatalog() {
  83. return systemCatalog;
  84. }
  85. public void setSystemCatalog(String systemCatalog) {
  86. this.systemCatalog = systemCatalog;
  87. }
  88. public String getComment() {
  89. return comment;
  90. }
  91. public void setComment(String comment) {
  92. this.comment = comment;
  93. }
  94. public String getFoundingTimeFormattedDate(){
  95. if (this.foundingTime == null) {
  96. return null;
  97. } else {
  98. return DateFormatUtils.format(this.getFoundingTime(), AFTConstants.YYYYMMDD);
  99. }
  100. }
  101. public void setFoundingTimeFormattedDate(String foundingTimeFormattedDate){
  102. }
  103. //制度目录
  104. public String getSystemDownloadFileName(){
  105. if (StringUtils.isBlank(this.systemUrl)){
  106. return null;
  107. } else {
  108. return (null == this.centerName) ? "" : this.centerName +FileUtils.getDownloadFileName(this.systemUrl);
  109. }
  110. }
  111. public void setSystemDownloadFileName(String systemDownloadFileName){
  112. }
  113. }