| | |
| | | orderInfo.setStatus(OrderStatusEnum.WAIT_PAY.getValue()); |
| | | orderInfo.setRemark(addOrderDto.getRemark()); |
| | | orderInfo.setOrderType(addOrderDto.getOrderType()); |
| | | orderInfo.setDeliveryType(2); |
| | | orderInfo.setDeliveryType(addOrderDto.getDeliveryType() == null ? 2 : addOrderDto.getDeliveryType()); |
| | | if (CollUtil.isEmpty(addOrderDto.getItems())) { |
| | | throw new FebsException("参数错误"); |
| | | } |
| | |
| | | } |
| | | wxResultStr = JSONUtil.toJsonStr(brandWCPayRequestDataThree); |
| | | payResultStr = brandWCPayRequestDataThree.getPrepay_id(); |
| | | orderInfo.setPayMethod("微信支付"); |
| | | orderInfo.setPayMethod("余额加微信"); |
| | | amountActualMsg = amountThree.toString(); |
| | | break; |
| | | /** |
| | |
| | | mallMoneyFlowService.addMoneyFlow(member.getId(), amountActualOne.negate(), MoneyFlowTypeEnum.PAY.getValue(), |
| | | orderInfo.getOrderNo(), FlowTypeEnum.BALANCE.getValue(),"余额支付",2); |
| | | amountActualMsg = amountActualOne.toString(); |
| | | |
| | | orderInfo.setPayMethod("积分加余额"); |
| | | mallMoneyFlowService.addMoneyFlow(member.getId(), scoreOne.negate(), |
| | | MoneyFlowTypeEnum.SCORE_PAY.getValue(), orderInfo.getOrderNo(), FlowTypeEnum.SCORE.getValue(),"积分支付",2); |
| | | break; |
| | |
| | | } |
| | | wxResultStr = JSONUtil.toJsonStr(brandWCPayRequestDataTwo); |
| | | payResultStr = brandWCPayRequestDataTwo.getPrepay_id(); |
| | | orderInfo.setPayMethod("微信支付"); |
| | | orderInfo.setPayMethod("积分加微信"); |
| | | amountActualMsg = amountActualTwo.toString(); |
| | | break; |
| | | default: |
| | | throw new FebsException("请选择正确的支付方式"); |
| | | |
| | | } |
| | | if(ObjectUtil.isNotEmpty(payOrderDto.getUseTime())){ |