Lecture.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. package com.goafanti.common.model;
  2. import java.util.Date;
  3. import org.apache.commons.lang3.time.DateFormatUtils;
  4. import com.fasterxml.jackson.annotation.JsonIgnore;
  5. import com.goafanti.common.constant.AFTConstants;
  6. public class Lecture {
  7. private String id;
  8. /**
  9. * 开展讲座人ID
  10. */
  11. private String uid;
  12. /**
  13. * 讲座开展时间
  14. */
  15. private Date lectureTime;
  16. /**
  17. * 记录创建时间
  18. */
  19. private Date createTime;
  20. /**
  21. * 记录最后更新时间
  22. */
  23. private Date lastUpdateTime;
  24. /**
  25. * 名称
  26. */
  27. private String name;
  28. /**
  29. * 简介
  30. */
  31. private String summary;
  32. /**
  33. * 删除标记
  34. */
  35. private Integer deletedSign;
  36. /**
  37. * 展示图URL
  38. */
  39. private String lectureUrl;
  40. /**
  41. * 是否在大咖页面展示
  42. */
  43. private Integer hot;
  44. /**
  45. * 是否在科技明星动态展示
  46. */
  47. private Integer dynamic;
  48. /**
  49. * 讲堂结束时间
  50. */
  51. private Date endTime;
  52. public String getId() {
  53. return id;
  54. }
  55. public void setId(String id) {
  56. this.id = id;
  57. }
  58. public String getUid() {
  59. return uid;
  60. }
  61. public void setUid(String uid) {
  62. this.uid = uid;
  63. }
  64. public Date getLectureTime() {
  65. return lectureTime;
  66. }
  67. public void setLectureTime(Date lectureTime) {
  68. this.lectureTime = lectureTime;
  69. }
  70. @JsonIgnore
  71. public Date getCreateTime() {
  72. return createTime;
  73. }
  74. public void setCreateTime(Date createTime) {
  75. this.createTime = createTime;
  76. }
  77. @JsonIgnore
  78. public Date getLastUpdateTime() {
  79. return lastUpdateTime;
  80. }
  81. public void setLastUpdateTime(Date lastUpdateTime) {
  82. this.lastUpdateTime = lastUpdateTime;
  83. }
  84. public String getName() {
  85. return name;
  86. }
  87. public void setName(String name) {
  88. this.name = name;
  89. }
  90. public String getSummary() {
  91. return summary;
  92. }
  93. public void setSummary(String summary) {
  94. this.summary = summary;
  95. }
  96. @JsonIgnore
  97. public Integer getDeletedSign() {
  98. return deletedSign;
  99. }
  100. public void setDeletedSign(Integer deletedSign) {
  101. this.deletedSign = deletedSign;
  102. }
  103. public String getLectureUrl() {
  104. return lectureUrl;
  105. }
  106. public void setLectureUrl(String lectureUrl) {
  107. this.lectureUrl = lectureUrl;
  108. }
  109. public Integer getHot() {
  110. return hot;
  111. }
  112. public void setHot(Integer hot) {
  113. this.hot = hot;
  114. }
  115. public Integer getDynamic() {
  116. return dynamic;
  117. }
  118. public void setDynamic(Integer dynamic) {
  119. this.dynamic = dynamic;
  120. }
  121. public Date getEndTime() {
  122. return endTime;
  123. }
  124. public void setEndTime(Date endTime) {
  125. this.endTime = endTime;
  126. }
  127. public String getLectureTimeFormattedDate() {
  128. if (this.lectureTime == null) {
  129. return null;
  130. } else {
  131. return DateFormatUtils.format(this.lectureTime, AFTConstants.YYYYMMDDHHMMSS);
  132. }
  133. }
  134. public void setLectureTimeFormattedDate(String lectureTimeFormattedDate) {
  135. }
  136. public String getEndTimeFormattedDate() {
  137. if (this.endTime == null) {
  138. return null;
  139. } else {
  140. return DateFormatUtils.format(this.endTime, AFTConstants.YYYYMMDDHHMMSS);
  141. }
  142. }
  143. public void setEndTimeFormattedDate(String endTimeFormattedDate) {
  144. }
  145. }