|
|
|
@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
package com.badminton.entity;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 赛事实体类
|
|
|
|
|
|
|
|
* 对应需求:FR-02 赛事创建与配置
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public class Match {
|
|
|
|
|
|
|
|
private String matchId;
|
|
|
|
|
|
|
|
private String matchName;
|
|
|
|
|
|
|
|
private String matchType; // 单打/双打/混合双打
|
|
|
|
|
|
|
|
private Date startTime;
|
|
|
|
|
|
|
|
private Date endTime;
|
|
|
|
|
|
|
|
private String location;
|
|
|
|
|
|
|
|
private String registrationCondition;
|
|
|
|
|
|
|
|
private int maxParticipants;
|
|
|
|
|
|
|
|
private String status; // 未开始/报名中/进行中/已结束
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Match() {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Match(String matchId, String matchName, String matchType, Date startTime,
|
|
|
|
|
|
|
|
Date endTime, String location, String registrationCondition,
|
|
|
|
|
|
|
|
int maxParticipants, String status) {
|
|
|
|
|
|
|
|
this.matchId = matchId;
|
|
|
|
|
|
|
|
this.matchName = matchName;
|
|
|
|
|
|
|
|
this.matchType = matchType;
|
|
|
|
|
|
|
|
this.startTime = startTime;
|
|
|
|
|
|
|
|
this.endTime = endTime;
|
|
|
|
|
|
|
|
this.location = location;
|
|
|
|
|
|
|
|
this.registrationCondition = registrationCondition;
|
|
|
|
|
|
|
|
this.maxParticipants = maxParticipants;
|
|
|
|
|
|
|
|
this.status = status;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Getter和Setter方法(自动生成:右键→Source Action→Generate Getters and Setters)
|
|
|
|
|
|
|
|
public String getMatchId() {
|
|
|
|
|
|
|
|
return matchId;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setMatchId(String matchId) {
|
|
|
|
|
|
|
|
this.matchId = matchId;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getMatchName() {
|
|
|
|
|
|
|
|
return matchName;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setMatchName(String matchName) {
|
|
|
|
|
|
|
|
this.matchName = matchName;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getMatchType() {
|
|
|
|
|
|
|
|
return matchType;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setMatchType(String matchType) {
|
|
|
|
|
|
|
|
this.matchType = matchType;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Date getStartTime() {
|
|
|
|
|
|
|
|
return startTime;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setStartTime(Date startTime) {
|
|
|
|
|
|
|
|
this.startTime = startTime;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Date getEndTime() {
|
|
|
|
|
|
|
|
return endTime;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setEndTime(Date endTime) {
|
|
|
|
|
|
|
|
this.endTime = endTime;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getLocation() {
|
|
|
|
|
|
|
|
return location;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setLocation(String location) {
|
|
|
|
|
|
|
|
this.location = location;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getRegistrationCondition() {
|
|
|
|
|
|
|
|
return registrationCondition;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setRegistrationCondition(String registrationCondition) {
|
|
|
|
|
|
|
|
this.registrationCondition = registrationCondition;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int getMaxParticipants() {
|
|
|
|
|
|
|
|
return maxParticipants;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setMaxParticipants(int maxParticipants) {
|
|
|
|
|
|
|
|
this.maxParticipants = maxParticipants;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getStatus() {
|
|
|
|
|
|
|
|
return status;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setStatus(String status) {
|
|
|
|
|
|
|
|
this.status = status;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public String toString() {
|
|
|
|
|
|
|
|
return "Match{"
|
|
|
|
|
|
|
|
+ "matchId='" + matchId + '\''
|
|
|
|
|
|
|
|
+ ", matchName='" + matchName + '\''
|
|
|
|
|
|
|
|
+ ", matchType='" + matchType + '\''
|
|
|
|
|
|
|
|
+ ", startTime=" + startTime
|
|
|
|
|
|
|
|
+ ", endTime=" + endTime
|
|
|
|
|
|
|
|
+ ", location='" + location + '\''
|
|
|
|
|
|
|
|
+ ", status='" + status + '\''
|
|
|
|
|
|
|
|
+ '}';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|