From 2438b374f20be3ad1e26cfcb0bfc928589b24fdb Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Mon, 15 Apr 2019 12:46:28 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81][=E6=96=B0=E5=A2=9E]:=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=E4=BA=8C=E7=BB=B4=E7=A0=81Scene=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/iformall/domain/po/WxCampaign.java | 12 ++++++++++++ .../com/iformall/domain/po/WxCouponChannel.java | 16 ++++++++++++++++ .../main/java/com/iformall/domain/po/WxGame.java | 12 ++++++++++++ .../java/com/iformall/domain/po/WxTopic.java | 12 ++++++++++++ 4 files changed, 52 insertions(+) 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; + } }