package com.yeshi.buwan.domain.recommend;
|
|
|
import org.hibernate.validator.constraints.NotEmpty;
|
import org.springframework.data.annotation.Id;
|
import org.springframework.data.annotation.Transient;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
|
import javax.validation.constraints.NotNull;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
//首页推荐专题
|
@Document(collection = "superHomeRecommendSpecial")
|
public class SuperHomeRecommendSpecial {
|
@Id
|
private String id;
|
//专题ID
|
@NotEmpty(message = "专题不能为空")
|
private String specialId;
|
@NotEmpty(message = "子系统不能为空")
|
//系统ID
|
private String detailSystemId;
|
//展示名称
|
private String showName;
|
//权重
|
private Integer weight;
|
|
private Date createTime;
|
|
private Date updateTime;
|
|
@Transient
|
private HomeRecommendSpecial special;
|
|
|
public static String createId(String specialId, String detailSystemId) {
|
return specialId + "-" + detailSystemId;
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public String getSpecialId() {
|
return specialId;
|
}
|
|
public void setSpecialId(String specialId) {
|
this.specialId = specialId;
|
}
|
|
public String getDetailSystemId() {
|
return detailSystemId;
|
}
|
|
public void setDetailSystemId(String detailSystemId) {
|
this.detailSystemId = detailSystemId;
|
}
|
|
public String getShowName() {
|
return showName;
|
}
|
|
public void setShowName(String showName) {
|
this.showName = showName;
|
}
|
|
public Integer getWeight() {
|
return weight;
|
}
|
|
public void setWeight(Integer weight) {
|
this.weight = weight;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public HomeRecommendSpecial getSpecial() {
|
return special;
|
}
|
|
public void setSpecial(HomeRecommendSpecial special) {
|
this.special = special;
|
}
|
}
|