|
|
|
@@ -339,7 +339,11 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService { |
|
|
|
if (null != lcoupons && lcoupons.size() > 0 ) { |
|
|
|
for (int j = 0 ; j < lcoupons.size(); j ++) { |
|
|
|
WxLevelConfigCoupon _lcc = lcoupons.get(j); |
|
|
|
WxCouponOrder couponOrder = wxOrderService.sendFreeCouponToUser(userId,tenantinfo, _lcc.getCouponId(), null,EnumPayWay.PAY_WAY_NOT_UNPAY_SYSTEM_SEND,EnumPayVersion.NO_VERSION,null,null); |
|
|
|
try { |
|
|
|
WxCouponOrder couponOrder = wxOrderService.sendFreeCouponToUser(userId,tenantinfo, _lcc.getCouponId(), null,EnumPayWay.PAY_WAY_NOT_UNPAY_SYSTEM_SEND,EnumPayVersion.NO_VERSION,null,null); |
|
|
|
}catch(Exception e) { |
|
|
|
logger.error("sendLevelChangeCoupons error.",e); |
|
|
|
} |
|
|
|
} |
|
|
|
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(userId,tenantinfo.getFinalTenantId()); |
|
|
|
wxCUserBasicInfo.setLastChangeCouponPoins(wlc.getPoints()); |
|
|
|
|