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

[卡券][修改]:卡券是否支持

release_toaliyun_real
Stormeye Wu 6 лет назад
Родитель
Сommit
22f1863fc4
3 измененных файлов: 42 добавлений и 1 удалений
  1. +5
    -1
      mallinkService/src/main/java/com/iformall/domain/po/WxCoupon.java
  2. +36
    -0
      mallinkService/src/main/java/com/iformall/enums/EnumCouponPasswordSupport.java
  3. +1
    -0
      mallinkService/src/main/resources/mapper/WxCouponMapper.xml

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

@@ -140,6 +140,9 @@ public class WxCoupon extends BaseEntity {

private Integer approvalType;

@io.swagger.annotations.ApiModelProperty(value="卡密是否支持(0:不支持,1支持)",name="passwordSupport")
private Integer passwordSupport;

@Transient
private String merchantParams;

@@ -162,7 +165,8 @@ public class WxCoupon extends BaseEntity {
@io.swagger.annotations.ApiModelProperty(value="投放渠道id",name="couponChannelId")
private Long couponChannelId;

//营销分析
@Transient
@io.swagger.annotations.ApiModelProperty(value="营销分析",name="wxCouponStatisVo")
private WxCouponStatisVo wxCouponStatisVo;

@io.swagger.annotations.ApiModelProperty(value="投放审批状态",name="putApplyStatus")


+ 36
- 0
mallinkService/src/main/java/com/iformall/enums/EnumCouponPasswordSupport.java Просмотреть файл

@@ -0,0 +1,36 @@
package com.iformall.enums;

/**
* Created by Stormeye on 2018/08/09.
*/
public enum EnumCouponPasswordSupport {

NOT_SUPPORT(0, "不支持"),
SUPPORTED(1, "支持"),
;

public static EnumCouponPasswordSupport getEnum(Integer code) {
for (EnumCouponPasswordSupport value : values()) {
if (value.getCode().equals(code)) {
return value;
}
}
return null;
}

private Integer code;
private String message;

EnumCouponPasswordSupport(Integer code, String message) {
this.code = code;
this.message = message;
}

public Integer getCode() {
return code;
}

public String getMessage() {
return message;
}
}

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

@@ -43,6 +43,7 @@
<result column="cancle_apply_status" property="cancleApplyStatus"/>
<result column="conditions" jdbcType="VARCHAR" property="conditions"/>
<result column="approval_type" property="approvalType"/>
<result column="password_support" property="passwordSupport"/>
</resultMap>
<resultMap id="statisMap" type="com.iformall.domain.vo.WxCouponStatisVo">
<id column="id" jdbcType="BIGINT" property="id"/>


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