| | |
| | | resultMap.put("codeUrl", paramOut.getString("qr_link")); |
| | | resultMap.put("code", "0"); |
| | | resultMap.put("msg", "下单成功"); |
| | | doSaveOnlinePay(smallWeChatDto, "无", orderNum, feeName, payAmount, OnlinePayDto.STATE_WAIT, "待支付"); |
| | | doSaveOnlinePay(smallWeChatDto, "无", orderNum, feeName, payAmount, OnlinePayDto.STATE_WAIT, "待支付",paymentPoolValueDtos.get(0).getPpId()); |
| | | |
| | | return resultMap; |
| | | } |
| | |
| | | onlinePayV1InnerServiceSMOImpl.updateOnlinePay(onlinePayPo); |
| | | } |
| | | |
| | | private void doSaveOnlinePay(SmallWeChatDto smallWeChatDto, String openId, String orderId, String feeName, double money, String state, String message) { |
| | | private void doSaveOnlinePay(SmallWeChatDto smallWeChatDto, String openId, String orderId, String feeName, |
| | | double money, String state, String message, |
| | | String ppId) { |
| | | OnlinePayPo onlinePayPo = new OnlinePayPo(); |
| | | onlinePayPo.setAppId(smallWeChatDto.getAppId()); |
| | | onlinePayPo.setMchId(smallWeChatDto.getMchId()); |
| | |
| | | onlinePayPo.setState(state); |
| | | onlinePayPo.setTotalFee(money + ""); |
| | | onlinePayPo.setTransactionId(orderId); |
| | | onlinePayPo.setPaymentPoolId(ppId); |
| | | onlinePayV1InnerServiceSMOImpl.saveOnlinePay(onlinePayPo); |
| | | } |
| | | |