|
|
|
@@ -1,5 +1,7 @@ |
|
|
|
package com.iformall.domain.po; |
|
|
|
|
|
|
|
import com.iformall.enums.EnumCouponType; |
|
|
|
|
|
|
|
import javax.persistence.Id; |
|
|
|
import javax.persistence.Table; |
|
|
|
import javax.persistence.Transient; |
|
|
|
@@ -90,16 +92,17 @@ public class WxCouponChannel implements Serializable { |
|
|
|
/*0:上架 1:下架**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="0:上架 1:下架",name="status") |
|
|
|
private Integer status; |
|
|
|
/*创建时间**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="创建时间",name="createDate") |
|
|
|
private Date createDate; |
|
|
|
/*更新时间**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="更新时间",name="updateDate") |
|
|
|
private Date updateDate; |
|
|
|
/*更新时间**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="子频道ID",name="subTargetId") |
|
|
|
private Long subTargetId; |
|
|
|
|
|
|
|
@Transient |
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "小程序路径", name = "weaAppPath") |
|
|
|
private String weaAppPath; |
|
|
|
|
|
|
|
|
|
|
|
public String getTenantId() { |
|
|
|
return tenantId; |
|
|
|
@@ -209,7 +212,19 @@ public class WxCouponChannel implements Serializable { |
|
|
|
this.supportTransfer = supportTransfer; |
|
|
|
} |
|
|
|
|
|
|
|
public static enum Field |
|
|
|
public String getWeaAppPath() { |
|
|
|
if(!type.equals(EnumCouponType.COUPON_GROUP.getCode())) { |
|
|
|
return "pages/index/index?type=sd&couponChannelId=" + id; |
|
|
|
} else { |
|
|
|
return "pages/index/index?type=cd&couponChannelId=" + id; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void setWeaAppPath(String weaAppPath) { |
|
|
|
this.weaAppPath = weaAppPath; |
|
|
|
} |
|
|
|
|
|
|
|
public static enum Field |
|
|
|
{ |
|
|
|
Id_ASC("`id` ASC"),Id_DESC("`id` DESC") |
|
|
|
,TenantId_ASC("`tenant_id` ASC"),TenantId_DESC("`tenant_id` DESC") |
|
|
|
|