Commit f322ac4b by 吕明尚

修改充值回调

parent c38cd095
...@@ -364,7 +364,7 @@ public class ConsumerWalletServiceImpl extends ServiceImpl<ConsumerWalletMapper, ...@@ -364,7 +364,7 @@ public class ConsumerWalletServiceImpl extends ServiceImpl<ConsumerWalletMapper,
for (Map.Entry<Long, MemberConfig> entry : memberConfigMap.entrySet()) { for (Map.Entry<Long, MemberConfig> entry : memberConfigMap.entrySet()) {
if (consumption[0].compareTo(BigDecimal.valueOf(entry.getValue().getLimitRequirements())) >= 0 && if (consumption[0].compareTo(BigDecimal.valueOf(entry.getValue().getLimitRequirements())) >= 0 &&
(consumption[0].compareTo(BigDecimal.valueOf(memberConfigMap.get(entry.getKey() + 1).getLimitRequirements())) < 0 || (consumption[0].compareTo(BigDecimal.valueOf(memberConfigMap.get(entry.getKey() + 1).getLimitRequirements())) < 0 ||
consumption[0].compareTo(BigDecimal.valueOf(memberConfigMap.get(memberConfigMap.size()).getLimitRequirements())) >= 0)) { consumption[0].compareTo(BigDecimal.valueOf(memberConfigMap.get(Collections.max(memberConfigMap.keySet())).getLimitRequirements())) >= 0)) {
one.setMembershipLevel(entry.getKey()); one.setMembershipLevel(entry.getKey());
one.setMemberConfigId(entry.getValue().getId()); one.setMemberConfigId(entry.getValue().getId());
consumerMemberService.updateById(one); consumerMemberService.updateById(one);
......
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