Browse Source

Merge branch 'develop' into release

tags/v1.9.0
wanghaoran 1 year ago
parent
commit
c106ae3837
2 changed files with 7 additions and 0 deletions
  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 View File

@NotNull(message = "points can not be null") @NotNull(message = "points can not be null")
private Integer points; private Integer points;


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

} }

+ 2
- 0
tuoheng-api/src/main/java/com/tuoheng/api/service/impl/WxServiceImpl.java View File

userPointsDetail.setOpenid(westreamUser.getOpenid()); userPointsDetail.setOpenid(westreamUser.getOpenid());
userPointsDetail.setNickname(westreamUser.getNickname()); userPointsDetail.setNickname(westreamUser.getNickname());
userPointsDetail.setPointsChange(wxSubUserPointsRequest.getPoints()); userPointsDetail.setPointsChange(wxSubUserPointsRequest.getPoints());
userPointsDetail.setOperatorName(wxSubUserPointsRequest.getShopName());
userPointsDetail.setChangeName("积分兑换"); userPointsDetail.setChangeName("积分兑换");
userPointsDetail.setPointsTime(new Date()); userPointsDetail.setPointsTime(new Date());
userPointsDetail.setType(2); userPointsDetail.setType(2);
userPointsDetail.setOpenid(westreamUser.getOpenid()); userPointsDetail.setOpenid(westreamUser.getOpenid());
userPointsDetail.setNickname(westreamUser.getNickname()); userPointsDetail.setNickname(westreamUser.getNickname());
userPointsDetail.setPointsChange(wxSubUserPointsRequest.getPoints()); userPointsDetail.setPointsChange(wxSubUserPointsRequest.getPoints());
userPointsDetail.setOperatorName(wxSubUserPointsRequest.getShopName());
userPointsDetail.setChangeName("积分返还"); userPointsDetail.setChangeName("积分返还");
userPointsDetail.setPointsTime(new Date()); userPointsDetail.setPointsTime(new Date());
userPointsDetail.setType(1); userPointsDetail.setType(1);

Loading…
Cancel
Save