Commit dd2037f9 by 吕明尚

Merge branch 'refs/heads/dev' into test

parents f211ad40 38360dff
...@@ -250,9 +250,9 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i ...@@ -250,9 +250,9 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i
throw new BaseException("充值模板异常"); throw new BaseException("充值模板异常");
} }
if (byId.getGiveType().contains(GiveTypeEnum.AMOUNT.getIndex())) { if (byId.getGiveType().contains(GiveTypeEnum.AMOUNT.getIndex())) {
recharge.setRechargeAmount(byId.getRechargeAmount()); recharge.setGiveAmount(byId.getGiveAmount());
} else { } else {
recharge.setRechargeAmount(BigDecimal.ZERO); recharge.setGiveAmount(BigDecimal.ZERO);
} }
if (byId.getGiveType().contains(GiveTypeEnum.DURATION.getIndex())) { if (byId.getGiveType().contains(GiveTypeEnum.DURATION.getIndex())) {
recharge.setGiveDuration(byId.getGiveDuration()); recharge.setGiveDuration(byId.getGiveDuration());
...@@ -265,7 +265,7 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i ...@@ -265,7 +265,7 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i
} else { } else {
recharge.setGiveIntegral(BigDecimal.ZERO); recharge.setGiveIntegral(BigDecimal.ZERO);
} }
recharge.setGiveAmount(byId.getGiveAmount()); recharge.setRechargeAmount(byId.getRechargeAmount());
recharge.setGiveType(byId.getGiveType()); recharge.setGiveType(byId.getGiveType());
recharge.setStatus(YesNoEnum.no.getIndex()); recharge.setStatus(YesNoEnum.no.getIndex());
recharge.setConsumerId(user.getId()); recharge.setConsumerId(user.getId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment