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

[小程序相关二维码][新增]:公众号二维码Scene添加

release_toaliyun_real
Stormeye Wu 7 лет назад
Родитель
Сommit
2438b374f2
4 измененных файлов: 52 добавлений и 0 удалений
  1. +12
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxCampaign.java
  2. +16
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java
  3. +12
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxGame.java
  4. +12
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxTopic.java

+ 12
- 0
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")


+ 16
- 0
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")


+ 12
- 0
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();


+ 12
- 0
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;
}
}

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