提交代码

dev
胡锐 3 months ago
parent 2fb04fd18f
commit 6bb0b12264
  1. 14
      service/src/main/java/com/hfkj/service/order/OrderCreateService.java

@ -108,12 +108,14 @@ public class OrderCreateService {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "无法交易,代理商二维码已失效"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "无法交易,代理商二维码已失效");
} }
try { try {
// 扣除代理商商户金额 if (MerchantSourceTypeEnum.type1.getNumber().equals(merchant.getSourceType())) {
Map<String,Object> param = new HashMap<>(); // 扣除代理商商户金额
param.put("sourceType", MerchantAccountRecordSourceTypeEnum.type2.getType()); Map<String,Object> param = new HashMap<>();
param.put("sourceOrderNo", gasOrder.getOrderNo()); param.put("sourceType", MerchantAccountRecordSourceTypeEnum.type2.getType());
param.put("sourceOrderContent", "创建加油订单:"+gasOrder.getOrderNo()+",加油金额:¥" +orderChild.getProductPrice()); param.put("sourceOrderNo", gasOrder.getOrderNo());
agentMerAccountService.consume(agentMer.getAgentId(), agentMer.getMerNo(), orderChild.getProductPrice(), param); param.put("sourceOrderContent", "创建加油订单:"+gasOrder.getOrderNo()+",加油金额:¥" +orderChild.getProductPrice());
agentMerAccountService.consume(agentMer.getAgentId(), agentMer.getMerNo(), orderChild.getProductPrice(), param);
}
} catch (BaseException e) { } catch (BaseException e) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, e.getErrorMsg()); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, e.getErrorMsg());
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save