提交代码

master
胡锐 3 months ago
parent cdf83baa4e
commit aa081f70d0
  1. 2
      service/src/main/java/com/hfkj/service/merchant/impl/BsMerchantAccountRecordServiceImpl.java
  2. 3
      service/src/main/java/com/hfkj/service/order/OrderPaySuccessService.java

@ -77,7 +77,7 @@ public class BsMerchantAccountRecordServiceImpl implements BsMerchantAccountReco
criteria.andMerNoEqualTo(MapUtils.getString(param, "merNo")); criteria.andMerNoEqualTo(MapUtils.getString(param, "merNo"));
} }
example.setOrderByClause("create_time desc"); example.setOrderByClause("create_time desc,id desc");
return merchantAccountRecordMapper.selectByExample(example); return merchantAccountRecordMapper.selectByExample(example);
} }
} }

@ -114,15 +114,12 @@ public class OrderPaySuccessService {
merchantAccountService.consume(gasOrder.getMerNo(), gasOrder.getGasRefuelPrice(), consumeMap); merchantAccountService.consume(gasOrder.getMerNo(), gasOrder.getGasRefuelPrice(), consumeMap);
} }
} else { } else {
// 商户额度
if (merchant.getChainBrandSettleType().equals(MerchantChainBrandSettleTypeEnum.type2.getNumber())) {
// 商户额度 // 商户额度
Map<String,Object> consumeMap = new HashMap<>(); Map<String,Object> consumeMap = new HashMap<>();
consumeMap.put("sourceType", MerchantAccountRecordSourceTypeEnum.type2.getType()); consumeMap.put("sourceType", MerchantAccountRecordSourceTypeEnum.type2.getType());
consumeMap.put("sourceId", gasOrder.getId()); consumeMap.put("sourceId", gasOrder.getId());
consumeMap.put("sourceOrderNo", gasOrder.getOrderNo()); consumeMap.put("sourceOrderNo", gasOrder.getOrderNo());
merchantAccountService.consume(gasOrder.getMerNo(), gasOrder.getGasRefuelPrice(), consumeMap); merchantAccountService.consume(gasOrder.getMerNo(), gasOrder.getGasRefuelPrice(), consumeMap);
}
} }
} }

Loading…
Cancel
Save