diff --git a/mallinkService/src/main/java/com/iformall/domain/po/WxCampaign.java b/mallinkService/src/main/java/com/iformall/domain/po/WxCampaign.java index d37c8e8dc..2258a8a5e 100644 --- a/mallinkService/src/main/java/com/iformall/domain/po/WxCampaign.java +++ b/mallinkService/src/main/java/com/iformall/domain/po/WxCampaign.java @@ -111,6 +111,10 @@ public class WxCampaign implements Serializable { @io.swagger.annotations.ApiModelProperty(value="小程序路径",name="weappPath") protected String weappPath; + @Transient + @io.swagger.annotations.ApiModelProperty(value="小程序二维码Scene",name="weappScene") + protected String weappScene; + public String getTenantId() { return tenantId; } @@ -230,6 +234,14 @@ public class WxCampaign implements Serializable { this.weappPath = weappPath; } + public String getWeappScene() { + return "t:bt:" + type + ":" +id; + } + + public void setWeappScene(String weappScene) { + this.weappScene = weappScene; + } + public static enum Field { Id_ASC("`id` ASC"),Id_DESC("`id` DESC") diff --git a/mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java b/mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java index 97c856bea..b89d44cf1 100644 --- a/mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java +++ b/mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java @@ -103,6 +103,10 @@ public class WxCouponChannel implements Serializable { @io.swagger.annotations.ApiModelProperty(value = "小程序路径", name = "weaAppPath") private String weaAppPath; + @Transient + @io.swagger.annotations.ApiModelProperty(value = "小程序二维码scene", name = "weaAppScene") + private String weaAppScene; + public String getTenantId() { return tenantId; @@ -224,6 +228,18 @@ public class WxCouponChannel implements Serializable { this.weaAppPath = weaAppPath; } + public String getWeaAppScene() { + if(!type.equals(EnumCouponType.COUPON_GROUP.getCode())) { + return "t:sd:" + id; + } else { + return "t:cd:" + id; + } + } + + public void setWeaAppScene(String weaAppScene) { + this.weaAppScene = weaAppScene; + } + public static enum Field { Id_ASC("`id` ASC"),Id_DESC("`id` DESC") diff --git a/mallinkService/src/main/java/com/iformall/domain/po/WxGame.java b/mallinkService/src/main/java/com/iformall/domain/po/WxGame.java index 2dd04ce95..6c2cf043c 100644 --- a/mallinkService/src/main/java/com/iformall/domain/po/WxGame.java +++ b/mallinkService/src/main/java/com/iformall/domain/po/WxGame.java @@ -100,6 +100,10 @@ public class WxGame implements Serializable { @io.swagger.annotations.ApiModelProperty(value="小程序路径",name="weappPath") private String weappPath; + @Transient + @io.swagger.annotations.ApiModelProperty(value="小程序二维码Scene",name="weappScene") + private String weappScene; + public Long getId() { return id; @@ -257,6 +261,14 @@ public class WxGame implements Serializable { this.weappPath = weappPath; } + public String getWeappScene() { + return "t:gm"+id; + } + + public void setWeappScene(String weappScene) { + this.weappScene = weappScene; + } + public void setGameTemplate(WxGameTemplate gameTemplate) { if (gameTemplate != null) { this.imgUrl = gameTemplate.getImgUrl(); diff --git a/mallinkService/src/main/java/com/iformall/domain/po/WxTopic.java b/mallinkService/src/main/java/com/iformall/domain/po/WxTopic.java index c4012a38a..3ad82d81c 100644 --- a/mallinkService/src/main/java/com/iformall/domain/po/WxTopic.java +++ b/mallinkService/src/main/java/com/iformall/domain/po/WxTopic.java @@ -83,6 +83,10 @@ public class WxTopic implements Serializable { @io.swagger.annotations.ApiModelProperty(value="小程序路径",name="weappPath") private String weappPath; + @Transient + @io.swagger.annotations.ApiModelProperty(value="小程序二维码Scene",name="weappScene") + private String weappScene; + public Integer getIsOnline() { return isOnline; } @@ -242,4 +246,12 @@ public class WxTopic implements Serializable { public void setWeappPath(String weappPath) { this.weappPath = weappPath; } + + public String getWeappScene() { + return "t:td:" + id; + } + + public void setWeappScene(String weappScene) { + this.weappScene = weappScene; + } }