Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
@@ -174,10 +174,22 @@ public class MkShopRechargeServiceImpl extends ServiceImpl<MkShopRechargeMapper,
|
|||||||
.setType(1)
|
.setType(1)
|
||||||
.setBizEnum(bizEnum)
|
.setBizEnum(bizEnum)
|
||||||
.setRelationId(paymentId);
|
.setRelationId(paymentId);
|
||||||
|
|
||||||
|
|
||||||
// 标准充值
|
// 标准充值
|
||||||
if (rechargeDetailId != null) {
|
if (rechargeDetailId != null) {
|
||||||
MkShopRechargeDetail rechargeDetail = shopRechargeDetailService.getById(rechargeDetailId);
|
MkShopRechargeDetail rechargeDetail = shopRechargeDetailService.getById(rechargeDetailId);
|
||||||
shopUserMoneyEditDTO.setMoney(rechargeDetail.getAmount().add(rechargeDetail.getRewardAmount()));
|
shopUserMoneyEditDTO.setMoney(rechargeDetail.getAmount());
|
||||||
|
|
||||||
|
// 赠送金额
|
||||||
|
ShopUserMoneyEditDTO shopUserMoneyEditRewardDTO = new ShopUserMoneyEditDTO()
|
||||||
|
.setId(shopUserId)
|
||||||
|
.setType(1)
|
||||||
|
.setBizEnum(ShopUserFlowBizEnum.AWARD_IN)
|
||||||
|
.setRelationId(paymentId);
|
||||||
|
shopUserMoneyEditRewardDTO.setMoney(rechargeDetail.getRewardAmount());
|
||||||
|
shopUserService.updateMoney(shopUserMoneyEditRewardDTO);
|
||||||
|
|
||||||
// 发放积分
|
// 发放积分
|
||||||
if (rechargeDetail.getRewardPoints() != null) {
|
if (rechargeDetail.getRewardPoints() != null) {
|
||||||
memberPointsService.addPoints(shopUserId, rechargeDetail.getRewardPoints(), "会员消费送积分", null);
|
memberPointsService.addPoints(shopUserId, rechargeDetail.getRewardPoints(), "会员消费送积分", null);
|
||||||
|
|||||||
@@ -433,14 +433,15 @@ public class PayServiceImpl implements PayService {
|
|||||||
updateInfo.setId(payParam.getShopUserId());
|
updateInfo.setId(payParam.getShopUserId());
|
||||||
shopUserService.updateById(updateInfo);
|
shopUserService.updateById(updateInfo);
|
||||||
}
|
}
|
||||||
ShopUserMoneyEditDTO shopUserMoneyEditDTO = new ShopUserMoneyEditDTO()
|
shopRechargeService.recharge(shopUser.getMainShopId(), shopUser.getId(), payParam.getRechargeDetailId(), payParam.getAmount(), null, "cash", ShopUserFlowBizEnum.CASH_IN);
|
||||||
.setId(shopUser.getId())
|
// ShopUserMoneyEditDTO shopUserMoneyEditDTO = new ShopUserMoneyEditDTO()
|
||||||
.setMoney(payParam.getAmount())
|
// .setId(shopUser.getId())
|
||||||
.setType(1)
|
// .setMoney(payParam.getAmount())
|
||||||
.setRemark("现金充值")
|
// .setType(1)
|
||||||
.setBizEnum(ShopUserFlowBizEnum.CASH_IN);
|
// .setRemark("现金充值")
|
||||||
//更新会员余额 并生成流水
|
// .setBizEnum(ShopUserFlowBizEnum.CASH_IN);
|
||||||
Long flowId = shopUserService.updateMoney(shopUserMoneyEditDTO);
|
// //更新会员余额 并生成流水
|
||||||
|
// Long flowId = shopUserService.updateMoney(shopUserMoneyEditDTO);
|
||||||
//TODO 以前的会员活动
|
//TODO 以前的会员活动
|
||||||
//shopActivateService.giveActivate(shopUser, payParam.getAmount(), payParam.getActivateId(), flowId);
|
//shopActivateService.giveActivate(shopUser, payParam.getAmount(), payParam.getActivateId(), flowId);
|
||||||
return CzgResult.success();
|
return CzgResult.success();
|
||||||
|
|||||||
Reference in New Issue
Block a user