Competition.java 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. package beilv.competition.domain;
  2. import java.util.Date;
  3. import com.fasterxml.jackson.annotation.JsonFormat;
  4. import org.apache.commons.lang3.builder.ToStringBuilder;
  5. import org.apache.commons.lang3.builder.ToStringStyle;
  6. import beilv.common.annotation.Excel;
  7. import beilv.common.core.domain.BaseEntity;
  8. /**
  9. * 赛事发布对象 competition
  10. *
  11. * @author LG
  12. * @date 2024-12-31
  13. */
  14. public class Competition extends BaseEntity {
  15. private static final long serialVersionUID = 1L;
  16. /**
  17. * id
  18. */
  19. private Integer id;
  20. /**
  21. * 活动标题
  22. */
  23. @Excel(name = "赛事标题")
  24. private String competitionTitle;
  25. /**
  26. * 活动类型
  27. */
  28. @Excel(name = "赛事类型")
  29. private String competitionType;
  30. /**
  31. * 团队最大人数
  32. */
  33. @Excel(name = "团队最大人数")
  34. private Integer personMax;
  35. /**
  36. * 最大团队数
  37. */
  38. @Excel(name = "赛事总人数/总团队数")
  39. private Integer teamMax;
  40. /**
  41. * 场地
  42. */
  43. @Excel(name = "赛事场地")
  44. private String competitionPlace;
  45. /**
  46. * 报名开始时间
  47. */
  48. @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
  49. @Excel(name = "赛事开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
  50. private Date applyStartTime;
  51. /**
  52. * 报名结束时间
  53. */
  54. @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
  55. @Excel(name = "赛事结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
  56. private Date applyEndTime;
  57. /**
  58. * 取消报名截至时间(活动开始前N小时可退款)
  59. */
  60. @Excel(name = "取消报名截至时间")
  61. private Double applyBeforeTime;
  62. /**
  63. * 活动上限人数
  64. */
  65. @Excel(name = "赛事上限人数")
  66. private Integer competitionMaximum;
  67. /**
  68. * 活动费用(每人)
  69. */
  70. @Excel(name = "赛事费用")
  71. private Double competitionExpense;
  72. /**
  73. * 观看门票
  74. */
  75. @Excel(name = "观看门票")
  76. private Double viewingTicket;
  77. /**
  78. * 活动详情
  79. */
  80. @Excel(name = "赛事详情")
  81. private String competitionDetails;
  82. /**
  83. * 报名须知
  84. */
  85. @Excel(name = "报名须知")
  86. private String registrationNotes;
  87. /**
  88. * 活动状态
  89. */
  90. @Excel(name = "赛事状态")
  91. private String competitionState;
  92. public void setId(Integer id) {
  93. this.id = id;
  94. }
  95. public Integer getId() {
  96. return id;
  97. }
  98. public void setCompetitionTitle(String competitionTitle) {
  99. this.competitionTitle = competitionTitle;
  100. }
  101. public String getCompetitionTitle() {
  102. return competitionTitle;
  103. }
  104. public void setCompetitionType(String competitionType) {
  105. this.competitionType = competitionType;
  106. }
  107. public String getCompetitionType() {
  108. return competitionType;
  109. }
  110. public void setPersonMax(Integer personMax) {
  111. this.personMax = personMax;
  112. }
  113. public Integer getPersonMax() {
  114. return personMax;
  115. }
  116. public void setTeamMax(Integer teamMax) {
  117. this.teamMax = teamMax;
  118. }
  119. public Integer getTeamMax() {
  120. return teamMax;
  121. }
  122. public void setCompetitionPlace(String competitionPlace) {
  123. this.competitionPlace = competitionPlace;
  124. }
  125. public String getCompetitionPlace() {
  126. return competitionPlace;
  127. }
  128. public void setApplyStartTime(Date applyStartTime) {
  129. this.applyStartTime = applyStartTime;
  130. }
  131. public Date getApplyStartTime() {
  132. return applyStartTime;
  133. }
  134. public void setApplyEndTime(Date applyEndTime) {
  135. this.applyEndTime = applyEndTime;
  136. }
  137. public Date getApplyEndTime() {
  138. return applyEndTime;
  139. }
  140. public void setApplyBeforeTime(Double applyBeforeTime) {
  141. this.applyBeforeTime = applyBeforeTime;
  142. }
  143. public Double getApplyBeforeTime() {
  144. return applyBeforeTime;
  145. }
  146. public void setCompetitionMaximum(Integer competitionMaximum) {
  147. this.competitionMaximum = competitionMaximum;
  148. }
  149. public Integer getCompetitionMaximum() {
  150. return competitionMaximum;
  151. }
  152. public void setCompetitionExpense(Double competitionExpense) {
  153. this.competitionExpense = competitionExpense;
  154. }
  155. public Double getCompetitionExpense() {
  156. return competitionExpense;
  157. }
  158. public void setViewingTicket(Double viewingTicket) {
  159. this.viewingTicket = viewingTicket;
  160. }
  161. public Double getViewingTicket() {
  162. return viewingTicket;
  163. }
  164. public void setCompetitionDetails(String competitionDetails) {
  165. this.competitionDetails = competitionDetails;
  166. }
  167. public String getCompetitionDetails() {
  168. return competitionDetails;
  169. }
  170. public void setRegistrationNotes(String registrationNotes) {
  171. this.registrationNotes = registrationNotes;
  172. }
  173. public String getRegistrationNotes() {
  174. return registrationNotes;
  175. }
  176. public void setCompetitionState(String competitionState) {
  177. this.competitionState = competitionState;
  178. }
  179. public String getCompetitionState() {
  180. return competitionState;
  181. }
  182. @Override
  183. public String toString() {
  184. return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
  185. .append("id", getId())
  186. .append("competitionTitle", getCompetitionTitle())
  187. .append("competitionType", getCompetitionType())
  188. .append("personMax", getPersonMax())
  189. .append("teamMax", getTeamMax())
  190. .append("competitionPlace", getCompetitionPlace())
  191. .append("applyStartTime", getApplyStartTime())
  192. .append("applyEndTime", getApplyEndTime())
  193. .append("applyBeforeTime", getApplyBeforeTime())
  194. .append("competitionMaximum", getCompetitionMaximum())
  195. .append("competitionExpense", getCompetitionExpense())
  196. .append("competitionDetails", getCompetitionDetails())
  197. .append("registrationNotes", getRegistrationNotes())
  198. .append("competitionState", getCompetitionState())
  199. .toString();
  200. }
  201. }