| | |
| | | package com.stylefeng.guns.modular.CharteredCar.server.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.stylefeng.guns.core.util.ToolUtil; |
| | |
| | | this.updateById(orderCharteredCar); |
| | | |
| | | //添加已收入明细 |
| | | incomeService.saveData(1, 1, 6, orderCharteredCar.getId(), 6, money); |
| | | incomeService.saveData(1, 1, 6, orderCharteredCar.getId(), 6, money,null); |
| | | systemNoticeService.addSystemNotice(1, "您已使用余额成功完成感谢费支付,谢谢使用!", uid, 1); |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | if(payType==4){ |
| | |
| | | private AppOrderController appOrderController; |
| | | |
| | | @Override |
| | | public void payThankYouFeeCallback(Integer orderId, String order_id, Integer payType) throws Exception { |
| | | public void payThankYouFeeCallback(Integer orderId, String order_id, Integer payType,String out_trade_no) throws Exception { |
| | | OrderCharteredCar orderCharteredCar = this.selectById(orderId); |
| | | PaymentRecord query = paymentRecordService.query(3, orderCharteredCar.getUserId(), 1, orderId, 6, payType, 1); |
| | | query.setState(2); |
| | |
| | | this.updateById(orderCharteredCar); |
| | | |
| | | //添加已收入明细 |
| | | incomeService.saveData(1, 1, 6, orderCharteredCar.getId(), 6, query.getAmount()); |
| | | incomeService.saveData(1, 1, 6, orderCharteredCar.getId(), 6, query.getAmount(),out_trade_no); |
| | | systemNoticeService.addSystemNotice(1, "您已使用" + (payType == 1 ? "微信" : (payType==2?"支付宝":"云闪付")) + "成功完成感谢费支付,谢谢使用!", userInfo.getId(), 1); |
| | | } |
| | | |