Kaynağa Gözat

Merge branch 'develop' into release

tags/v1.9.0
wanghaoran 1 yıl önce
ebeveyn
işleme
c106ae3837
2 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  1. +5
    -0
      tuoheng-api/src/main/java/com/tuoheng/api/entity/request/WxSubUserPointsRequest.java
  2. +2
    -0
      tuoheng-api/src/main/java/com/tuoheng/api/service/impl/WxServiceImpl.java

+ 5
- 0
tuoheng-api/src/main/java/com/tuoheng/api/entity/request/WxSubUserPointsRequest.java Dosyayı Görüntüle

@@ -21,4 +21,9 @@ public class WxSubUserPointsRequest {
@NotNull(message = "points can not be null")
private Integer points;

/**
* 商铺名称
*/
private String shopName;

}

+ 2
- 0
tuoheng-api/src/main/java/com/tuoheng/api/service/impl/WxServiceImpl.java Dosyayı Görüntüle

@@ -121,6 +121,7 @@ public class WxServiceImpl implements IWxService {
userPointsDetail.setOpenid(westreamUser.getOpenid());
userPointsDetail.setNickname(westreamUser.getNickname());
userPointsDetail.setPointsChange(wxSubUserPointsRequest.getPoints());
userPointsDetail.setOperatorName(wxSubUserPointsRequest.getShopName());
userPointsDetail.setChangeName("积分兑换");
userPointsDetail.setPointsTime(new Date());
userPointsDetail.setType(2);
@@ -162,6 +163,7 @@ public class WxServiceImpl implements IWxService {
userPointsDetail.setOpenid(westreamUser.getOpenid());
userPointsDetail.setNickname(westreamUser.getNickname());
userPointsDetail.setPointsChange(wxSubUserPointsRequest.getPoints());
userPointsDetail.setOperatorName(wxSubUserPointsRequest.getShopName());
userPointsDetail.setChangeName("积分返还");
userPointsDetail.setPointsTime(new Date());
userPointsDetail.setType(1);

Yükleniyor…
İptal
Kaydet