| @@ -111,6 +111,10 @@ public class WxCampaign implements Serializable { | |||||
| @io.swagger.annotations.ApiModelProperty(value="小程序路径",name="weappPath") | @io.swagger.annotations.ApiModelProperty(value="小程序路径",name="weappPath") | ||||
| protected String weappPath; | protected String weappPath; | ||||
| @Transient | |||||
| @io.swagger.annotations.ApiModelProperty(value="小程序二维码Scene",name="weappScene") | |||||
| protected String weappScene; | |||||
| public String getTenantId() { | public String getTenantId() { | ||||
| return tenantId; | return tenantId; | ||||
| } | } | ||||
| @@ -230,6 +234,14 @@ public class WxCampaign implements Serializable { | |||||
| this.weappPath = weappPath; | this.weappPath = weappPath; | ||||
| } | } | ||||
| public String getWeappScene() { | |||||
| return "t:bt:" + type + ":" +id; | |||||
| } | |||||
| public void setWeappScene(String weappScene) { | |||||
| this.weappScene = weappScene; | |||||
| } | |||||
| public static enum Field | public static enum Field | ||||
| { | { | ||||
| Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | ||||
| @@ -103,6 +103,10 @@ public class WxCouponChannel implements Serializable { | |||||
| @io.swagger.annotations.ApiModelProperty(value = "小程序路径", name = "weaAppPath") | @io.swagger.annotations.ApiModelProperty(value = "小程序路径", name = "weaAppPath") | ||||
| private String weaAppPath; | private String weaAppPath; | ||||
| @Transient | |||||
| @io.swagger.annotations.ApiModelProperty(value = "小程序二维码scene", name = "weaAppScene") | |||||
| private String weaAppScene; | |||||
| public String getTenantId() { | public String getTenantId() { | ||||
| return tenantId; | return tenantId; | ||||
| @@ -224,6 +228,18 @@ public class WxCouponChannel implements Serializable { | |||||
| this.weaAppPath = weaAppPath; | 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 | public static enum Field | ||||
| { | { | ||||
| Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | ||||
| @@ -100,6 +100,10 @@ public class WxGame implements Serializable { | |||||
| @io.swagger.annotations.ApiModelProperty(value="小程序路径",name="weappPath") | @io.swagger.annotations.ApiModelProperty(value="小程序路径",name="weappPath") | ||||
| private String weappPath; | private String weappPath; | ||||
| @Transient | |||||
| @io.swagger.annotations.ApiModelProperty(value="小程序二维码Scene",name="weappScene") | |||||
| private String weappScene; | |||||
| public Long getId() { | public Long getId() { | ||||
| return id; | return id; | ||||
| @@ -257,6 +261,14 @@ public class WxGame implements Serializable { | |||||
| this.weappPath = weappPath; | this.weappPath = weappPath; | ||||
| } | } | ||||
| public String getWeappScene() { | |||||
| return "t:gm"+id; | |||||
| } | |||||
| public void setWeappScene(String weappScene) { | |||||
| this.weappScene = weappScene; | |||||
| } | |||||
| public void setGameTemplate(WxGameTemplate gameTemplate) { | public void setGameTemplate(WxGameTemplate gameTemplate) { | ||||
| if (gameTemplate != null) { | if (gameTemplate != null) { | ||||
| this.imgUrl = gameTemplate.getImgUrl(); | this.imgUrl = gameTemplate.getImgUrl(); | ||||
| @@ -83,6 +83,10 @@ public class WxTopic implements Serializable { | |||||
| @io.swagger.annotations.ApiModelProperty(value="小程序路径",name="weappPath") | @io.swagger.annotations.ApiModelProperty(value="小程序路径",name="weappPath") | ||||
| private String weappPath; | private String weappPath; | ||||
| @Transient | |||||
| @io.swagger.annotations.ApiModelProperty(value="小程序二维码Scene",name="weappScene") | |||||
| private String weappScene; | |||||
| public Integer getIsOnline() { | public Integer getIsOnline() { | ||||
| return isOnline; | return isOnline; | ||||
| } | } | ||||
| @@ -242,4 +246,12 @@ public class WxTopic implements Serializable { | |||||
| public void setWeappPath(String weappPath) { | public void setWeappPath(String weappPath) { | ||||
| this.weappPath = weappPath; | this.weappPath = weappPath; | ||||
| } | } | ||||
| public String getWeappScene() { | |||||
| return "t:td:" + id; | |||||
| } | |||||
| public void setWeappScene(String weappScene) { | |||||
| this.weappScene = weappScene; | |||||
| } | |||||
| } | } | ||||