| @@ -227,21 +227,17 @@ public class WxCampaign implements Serializable { | |||||
| } | } | ||||
| public String getWeappPath() { | public String getWeappPath() { | ||||
| if(type == null) | |||||
| return "pages/index/index"; | |||||
| return "pages/index/index?type=bd&bt="+type+"&id="+id; | return "pages/index/index?type=bd&bt="+type+"&id="+id; | ||||
| } | } | ||||
| public void setWeappPath(String weappPath) { | |||||
| this.weappPath = weappPath; | |||||
| } | |||||
| public String getWeappScene() { | public String getWeappScene() { | ||||
| if(type == null) | |||||
| return ""; | |||||
| return "t:bt:" + type + ":" +id; | 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") | ||||
| @@ -217,29 +217,25 @@ public class WxCouponChannel implements Serializable { | |||||
| } | } | ||||
| public String getWeaAppPath() { | public String getWeaAppPath() { | ||||
| if(type == null) | |||||
| return "pages/index/index"; | |||||
| if(!type.equals(EnumCouponType.COUPON_GROUP.getCode())) { | if(!type.equals(EnumCouponType.COUPON_GROUP.getCode())) { | ||||
| return "pages/index/index?type=sd&couponChannelId=" + id; | |||||
| } else { | |||||
| return "pages/index/index?type=cd&couponChannelId=" + id; | return "pages/index/index?type=cd&couponChannelId=" + id; | ||||
| } else { | |||||
| return "pages/index/index?type=sd&couponChannelId=" + id; | |||||
| } | } | ||||
| } | } | ||||
| public void setWeaAppPath(String weaAppPath) { | |||||
| this.weaAppPath = weaAppPath; | |||||
| } | |||||
| public String getWeaAppScene() { | public String getWeaAppScene() { | ||||
| if(type == null) | |||||
| return ""; | |||||
| if(!type.equals(EnumCouponType.COUPON_GROUP.getCode())) { | if(!type.equals(EnumCouponType.COUPON_GROUP.getCode())) { | ||||
| return "t:sd:" + id; | |||||
| } else { | |||||
| return "t:cd:" + id; | return "t:cd:" + id; | ||||
| } else { | |||||
| return "t:sd:" + 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") | ||||
| @@ -254,21 +254,17 @@ public class WxGame implements Serializable { | |||||
| } | } | ||||
| public String getWeappPath() { | public String getWeappPath() { | ||||
| if (id == null) | |||||
| return "pages/index/index"; | |||||
| return "pages/index/index?type=gm&id="+id; | return "pages/index/index?type=gm&id="+id; | ||||
| } | } | ||||
| public void setWeappPath(String weappPath) { | |||||
| this.weappPath = weappPath; | |||||
| } | |||||
| public String getWeappScene() { | public String getWeappScene() { | ||||
| if(id == null) | |||||
| return ""; | |||||
| return "t:gm"+id; | 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(); | ||||
| @@ -240,18 +240,14 @@ public class WxTopic implements Serializable { | |||||
| } | } | ||||
| public String getWeappPath() { | public String getWeappPath() { | ||||
| return "pages/index/index?type=td&id="+id; | |||||
| } | |||||
| public void setWeappPath(String weappPath) { | |||||
| this.weappPath = weappPath; | |||||
| if(id == null) | |||||
| return "pages/index/index"; | |||||
| return "pages/index/index?type=td&id="+id; | |||||
| } | } | ||||
| public String getWeappScene() { | public String getWeappScene() { | ||||
| if(id == null) | |||||
| return ""; | |||||
| return "t:td:" + id; | return "t:td:" + id; | ||||
| } | } | ||||
| public void setWeappScene(String weappScene) { | |||||
| this.weappScene = weappScene; | |||||
| } | |||||
| } | } | ||||
| @@ -174,6 +174,7 @@ | |||||
| <resultMap id="WxCouponCVoMap" type="com.iformall.domain.vo.WxCouponCVo"> | <resultMap id="WxCouponCVoMap" type="com.iformall.domain.vo.WxCouponCVo"> | ||||
| <id column="id" jdbcType="BIGINT" property="id"/> | <id column="id" jdbcType="BIGINT" property="id"/> | ||||
| <result column="coupon_id" jdbcType="BIGINT" property="couponId" /> | <result column="coupon_id" jdbcType="BIGINT" property="couponId" /> | ||||
| <result column="type" jdbcType="INTEGER" property="type" /> | |||||
| <result column="target_ad" jdbcType="INTEGER" property="targetAd" /> | <result column="target_ad" jdbcType="INTEGER" property="targetAd" /> | ||||
| <result column="begin_time" jdbcType="TIMESTAMP" property="beginTime"/> | <result column="begin_time" jdbcType="TIMESTAMP" property="beginTime"/> | ||||
| <result column="end_time" jdbcType="TIMESTAMP" property="endTime"/> | <result column="end_time" jdbcType="TIMESTAMP" property="endTime"/> | ||||