OrderDonService.java 2.5 KB

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