| | |
| | | |
| | | String payResultStr = ""; |
| | | String wxResultStr = ""; |
| | | String amountActualMsg = ""; |
| | | String amountActualMsg = "0"; |
| | | switch (payOrderDto.getType()) { |
| | | case "1": |
| | | BrandWCPayRequestData brandWCPayRequestData = null; |
| | |
| | | if(amountActual.compareTo(BigDecimal.ZERO) > 0){ |
| | | mallMoneyFlowService.addMoneyFlow(member.getId(), amountActual.negate(), MoneyFlowTypeEnum.PAY.getValue(), |
| | | orderInfo.getOrderNo(), FlowTypeEnum.BALANCE.getValue(),"余额支付",2); |
| | | amountActualMsg = amountActual.toString(); |
| | | } |
| | | amountActualMsg = amountActual.toString(); |
| | | if(scoreActual.compareTo(BigDecimal.ZERO) > 0){ |
| | | mallMoneyFlowService.addMoneyFlow(member.getId(), scoreActual.negate(), |
| | | MoneyFlowTypeEnum.SCORE_PAY.getValue(), orderInfo.getOrderNo(), FlowTypeEnum.SCORE.getValue(),"积分支付",2); |
| | |
| | | if(stateRoll == 2){ |
| | | throw new FebsException("兑换券已使用"); |
| | | } |
| | | |
| | | mallRollPerk.setState(2); |
| | | mallRollPerkMapper.updateById(mallRollPerk); |
| | | payResultStr = orderInfo.getOrderNo(); |
| | | |
| | | orderInfo.setPayOrderNo(payOrderDto.getRollId().toString()); |
| | | orderInfo.setPayMethod("兑换券支付"); |
| | | orderInfo.setStatus(OrderStatusEnum.WAIT_SHIPPING.getValue()); |
| | | orderInfo.setPayTime(new Date()); |
| | | orderInfo.setPayResult("1"); |
| | | |
| | |
| | | break; |
| | | default: |
| | | |
| | | } |
| | | if(ObjectUtil.isNotEmpty(payOrderDto.getUseTime())){ |
| | | orderInfo.setUseTime(DateUtil.parseDate(payOrderDto.getUseTime())); |
| | | } |
| | | |
| | | //订单支付成功产生一个提货码 |
| | |
| | | stringBuffer.append("@"); |
| | | stringBuffer.append(amountActualMsg); |
| | | agentProducer.sendOrderGetMsg(stringBuffer.toString()); |
| | | agentProducer.sendRollSendMsg(orderInfo.getId()); |
| | | |
| | | // OrderStateDto orderStateDto = new OrderStateDto(); |
| | | // orderStateDto.setOrderNo(orderInfo.getOrderNo()); |