OrderDonService.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. package com.cyksj.service.order;
  2. import com.alipay.api.AlipayApiException;
  3. import com.alipay.api.AlipayResponse;
  4. import com.alipay.api.response.AlipayFundTransCommonQueryResponse;
  5. import com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse;
  6. import com.alipay.api.response.AlipayTradeQueryResponse;
  7. import com.baomidou.mybatisplus.extension.service.IService;
  8. import com.cyksj.dto.Result;
  9. import com.cyksj.model.dto.AliPayParams;
  10. import com.cyksj.model.dto.H5JsPayParams;
  11. import com.cyksj.model.entity.OrderDon;
  12. import com.cyksj.model.entity.RealGoodsInterestUser;
  13. import com.cyksj.model.manage.views.OrderDonView;
  14. import com.cyksj.model.request.OrderPayRequest;
  15. import com.cyksj.model.request.TransferAccountsReq;
  16. import com.cyksj.model.request.WxOrderRefundReq;
  17. import com.cyksj.model.request.ZfbOrderRefundReq;
  18. import java.util.Date;
  19. import java.util.List;
  20. import java.util.Map;
  21. /**
  22. * @author chan
  23. * @date 2021/10/11 下午4:07
  24. */
  25. public interface OrderDonService extends IService<OrderDon> {
  26. OrderDon submit(OrderPayRequest request) throws Exception;
  27. /**
  28. * 订单支付
  29. */
  30. H5JsPayParams pay(Long orderId, String tradeType) throws Exception;
  31. /**
  32. * 微信pc端支付
  33. */
  34. H5JsPayParams wxPcWebPay(Long orderId, String tradeType) throws Exception;
  35. /**
  36. * 微信支付回调
  37. */
  38. void prepayNotify(Map<String, String> map) throws Exception;
  39. /**
  40. * 关闭订单
  41. */
  42. void closeOrder(Long orderId);
  43. OrderDon renewal(OrderPayRequest request) throws Exception;
  44. OrderDonView getDetail(Long orderId, Long userId);
  45. List<OrderDon> getAppleOneOrderDons(List<Long> skuIds, List<String> noOrderStatus, Date yesZeroDate, Date thisZeroDate);
  46. /**
  47. * 支付宝预支付
  48. */
  49. AliPayParams aliPay(Long orderId, String returnUrl, String productCode, String qrPayMode) throws Exception;
  50. /**
  51. * 支付宝回调
  52. */
  53. void aliPayNotify(Map<String, String> paramsMap) throws Exception;
  54. /**
  55. * 微信退款
  56. */
  57. Result<String> wxRefund(WxOrderRefundReq wxOrderRefundReq) throws Exception;
  58. /**
  59. * 微信退款回调
  60. */
  61. void wxRefundNotify(Map<String, String> map) throws Exception;
  62. /**
  63. * 支付宝退款
  64. */
  65. Result<String> zfbRefund(ZfbOrderRefundReq zfbOrderRefundReq) throws Exception;
  66. List<RealGoodsInterestUser> selectNoPaymentRealGoods();
  67. Integer updateHasPaymentInterestRealGoods();
  68. void updateHasPaymentInterestRealGoodsPayTime();
  69. void saveTransport(Long addressId, Long orderId);
  70. /**
  71. * 支付宝红包转账
  72. */
  73. AlipayResponse transferAccounts(TransferAccountsReq transferAccountsReq) throws Exception;
  74. /**
  75. * 查询支付宝转账状态
  76. */
  77. AlipayFundTransCommonQueryResponse getTransFerStatusByTid(String translationId) throws Exception;
  78. /**
  79. * 支付宝订单详情
  80. */
  81. AlipayTradeQueryResponse getZfbOrderDetail(String shopId, String orderNo) throws AlipayApiException;
  82. /**
  83. * 支付宝退款订单详情
  84. */
  85. AlipayTradeFastpayRefundQueryResponse getZfbRefundDetail(String shopId, String orderNo) throws AlipayApiException;
  86. }