Просмотр исходного кода

[小程序路径及二维码][修改]:修改访问错误

release_toaliyun_real
Stormeye Wu 7 лет назад
Родитель
Сommit
15c07d04e8
5 измененных файлов: 22 добавлений и 37 удалений
  1. +4
    -8
      mallinkService/src/main/java/com/iformall/domain/po/WxCampaign.java
  2. +8
    -12
      mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java
  3. +4
    -8
      mallinkService/src/main/java/com/iformall/domain/po/WxGame.java
  4. +5
    -9
      mallinkService/src/main/java/com/iformall/domain/po/WxTopic.java
  5. +1
    -0
      mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml

+ 4
- 8
mallinkService/src/main/java/com/iformall/domain/po/WxCampaign.java Просмотреть файл

@@ -227,21 +227,17 @@ public class WxCampaign implements Serializable {
}

public String getWeappPath() {
if(type == null)
return "pages/index/index";
return "pages/index/index?type=bd&bt="+type+"&id="+id;
}

public void setWeappPath(String weappPath) {
this.weappPath = weappPath;
}

public String getWeappScene() {
if(type == null)
return "";
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")


+ 8
- 12
mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java Просмотреть файл

@@ -217,29 +217,25 @@ public class WxCouponChannel implements Serializable {
}

public String getWeaAppPath() {
if(type == null)
return "pages/index/index";
if(!type.equals(EnumCouponType.COUPON_GROUP.getCode())) {
return "pages/index/index?type=sd&couponChannelId=" + id;
} else {
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() {
if(type == null)
return "";
if(!type.equals(EnumCouponType.COUPON_GROUP.getCode())) {
return "t:sd:" + id;
} else {
return "t:cd:" + id;
} else {
return "t:sd:" + id;
}
}

public void setWeaAppScene(String weaAppScene) {
this.weaAppScene = weaAppScene;
}

public static enum Field
{
Id_ASC("`id` ASC"),Id_DESC("`id` DESC")


+ 4
- 8
mallinkService/src/main/java/com/iformall/domain/po/WxGame.java Просмотреть файл

@@ -254,21 +254,17 @@ public class WxGame implements Serializable {
}

public String getWeappPath() {
if (id == null)
return "pages/index/index";
return "pages/index/index?type=gm&id="+id;
}

public void setWeappPath(String weappPath) {
this.weappPath = weappPath;
}

public String getWeappScene() {
if(id == null)
return "";
return "t:gm"+id;
}

public void setWeappScene(String weappScene) {
this.weappScene = weappScene;
}

public void setGameTemplate(WxGameTemplate gameTemplate) {
if (gameTemplate != null) {
this.imgUrl = gameTemplate.getImgUrl();


+ 5
- 9
mallinkService/src/main/java/com/iformall/domain/po/WxTopic.java Просмотреть файл

@@ -240,18 +240,14 @@ public class WxTopic implements Serializable {
}

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() {
if(id == null)
return "";
return "t:td:" + id;
}

public void setWeappScene(String weappScene) {
this.weappScene = weappScene;
}
}

+ 1
- 0
mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml Просмотреть файл

@@ -174,6 +174,7 @@
<resultMap id="WxCouponCVoMap" type="com.iformall.domain.vo.WxCouponCVo">
<id column="id" jdbcType="BIGINT" property="id"/>
<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="begin_time" jdbcType="TIMESTAMP" property="beginTime"/>
<result column="end_time" jdbcType="TIMESTAMP" property="endTime"/>


Загрузка…
Отмена
Сохранить