| | |
| | | package com.ruoyi.order.controller.miniapp; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.github.binarywang.wxpay.bean.ecommerce.PartnerTransactionsResult; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.DateUtils; |
| | | import com.ruoyi.common.core.web.controller.BaseController; |
| | |
| | | appMemberBindingDto.setShopId(appPlaceOrderDto.getShopId()); |
| | | appMemberBindingDto.setUserId(userId); |
| | | appMemberBindingDto.setBindingFlag(1); |
| | | appMemberBindingDto.setBindingType(1); |
| | | memberService.updateMemberBinding(appMemberBindingDto); |
| | | } |
| | | } |
| | |
| | | appMemberBindingDto.setShopId(appPlaceActivityDto.getShopId()); |
| | | appMemberBindingDto.setUserId(userId); |
| | | appMemberBindingDto.setBindingFlag(1); |
| | | appMemberBindingDto.setBindingType(2); |
| | | memberService.updateMemberBinding(appMemberBindingDto); |
| | | } |
| | | } |
| | |
| | | Long userId = SecurityUtils.getUserId(); |
| | | AppPlaceOrderVo appPlaceOrderVo = new AppPlaceOrderVo(); |
| | | Order order = orderService.getById(appBaseGetDto.getId()); |
| | | order.setOrderStatus(2); |
| | | orderService.saveOrUpdate(order); |
| | | PartnerTransactionsResult transaction = new PartnerTransactionsResult(); |
| | | transaction.setOutTradeNo(appBaseGetDto.getId()); |
| | | orderService.payBack(transaction); |
| | | appPlaceOrderVo.setOrderId(order.getOrderId()); |
| | | appPlaceOrderVo.setOrderNo(order.getOrderNo()); |
| | | appPlaceOrderVo.setPayType(order.getPayType()); |