|
|
|
@@ -1,6 +1,8 @@ |
|
|
|
package com.iformall.domain.po; |
|
|
|
|
|
|
|
import lombok.Data; |
|
|
|
import lombok.EqualsAndHashCode; |
|
|
|
import lombok.ToString; |
|
|
|
|
|
|
|
import javax.persistence.Id; |
|
|
|
import javax.persistence.Table; |
|
|
|
@@ -10,6 +12,8 @@ import java.util.List; |
|
|
|
|
|
|
|
@Table(name = "wx_topic") |
|
|
|
@Data |
|
|
|
@ToString(callSuper = true) |
|
|
|
@EqualsAndHashCode(callSuper = true) |
|
|
|
public class WxTopic extends BaseEntity{ |
|
|
|
|
|
|
|
@Id |
|
|
|
@@ -53,6 +57,7 @@ public class WxTopic extends BaseEntity{ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="状态,一个或者多个",name="statusStr") |
|
|
|
private String statusStr; |
|
|
|
@Transient |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="状态,一个或者多个",name="statusList") |
|
|
|
protected List<Integer> statusList; |
|
|
|
// |
|
|
|
@Transient |
|
|
|
@@ -63,14 +68,9 @@ public class WxTopic extends BaseEntity{ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="上架标志 1正在上架",name="isOnline") |
|
|
|
private Integer isOnline; |
|
|
|
@Transient |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="couponChannelId渠道ID",name="couponChannelId") |
|
|
|
private Long couponChannelId; |
|
|
|
|
|
|
|
@Override |
|
|
|
public String getSortColumns() { |
|
|
|
super.setSortColumns(this.sortColumns); |
|
|
|
return super.getSortColumns(); |
|
|
|
} |
|
|
|
|
|
|
|
@Transient |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="小程序路径",name="weappPath") |
|
|
|
private String weappPath; |
|
|
|
@@ -79,6 +79,12 @@ public class WxTopic extends BaseEntity{ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="小程序二维码Scene",name="weappScene") |
|
|
|
private String weappScene; |
|
|
|
|
|
|
|
@Override |
|
|
|
public String getSortColumns() { |
|
|
|
super.setSortColumns(this.sortColumns); |
|
|
|
return super.getSortColumns(); |
|
|
|
} |
|
|
|
|
|
|
|
public String getWeappPath() { |
|
|
|
if(id == null) |
|
|
|
return "pages/index/index"; |
|
|
|
|