OrderService.java 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. package com.kmall.admin.service;
  2. import com.kmall.admin.dto.OrderExpressDto;
  3. import com.kmall.admin.dto.OrderRecognitionDto;
  4. import com.kmall.admin.entity.OfflineCartEntity;
  5. import com.kmall.admin.entity.OrderEntity;
  6. import com.kmall.admin.entity.OrderRefundEntity;
  7. import com.kmall.admin.entity.WxOrderEntity;
  8. import com.kmall.admin.fromcomm.entity.SysUserEntity;
  9. import com.kmall.manager.manager.alipay.AliPayMicropayApiResult;
  10. import com.kmall.manager.manager.wechat.wxglobal.dto.WechatGlobalRefundApiResult;
  11. import com.kmall.common.utils.print.ticket.item.Ticket;
  12. import com.kmall.common.utils.wechat.WechatRefundApiResult;
  13. import net.sf.json.JSONObject;
  14. import java.util.List;
  15. import java.util.Map;
  16. /**
  17. * @author Scott
  18. * @email
  19. * @date 2017-08-13 10:41:09
  20. */
  21. public interface OrderService {
  22. OrderEntity queryObject(Long id);
  23. OrderEntity queryObjectBySysUser(Long id);
  24. List<OrderEntity> queryList(Map<String, Object> map);
  25. int queryTotal(Map<String, Object> map);
  26. List<OrderEntity> queryOffilineOrderList(Map<String, Object> map);
  27. int save(OrderEntity order);
  28. int update(OrderEntity order);
  29. int delete(Long id);
  30. int deleteBatch(Long[] ids);
  31. /**
  32. * 确定收货
  33. *
  34. * @param id
  35. * @return
  36. */
  37. int confirm(Long id);
  38. int sendGoods(OrderEntity order);
  39. /**
  40. * 打印订单
  41. *
  42. * @param id 订单ID
  43. * @return
  44. */
  45. Ticket printMsg(Long id);
  46. Ticket printMsg(Long id,String sessionId);
  47. void refund(OrderEntity orderInfo);
  48. /**
  49. * 退款
  50. */
  51. void refund(OrderEntity orderInfo, WechatRefundApiResult result);
  52. void refund(OrderEntity orderInfo, AliPayMicropayApiResult result);
  53. /**
  54. * 微信国际退款逻辑处理
  55. * @param order
  56. * @param result
  57. */
  58. void globalRefund(OrderEntity order, WechatGlobalRefundApiResult result);
  59. void pinganRefund(OrderEntity order, JSONObject result, String refundId);
  60. List<OrderRefundEntity> queryRefundList(Map<String, Object> map);
  61. int queryRefundTotal(Map<String, Object> map);
  62. OrderRefundEntity queryRefundObject(Long refundId);
  63. void applyRefundDeal(OrderEntity orderInfo, OrderRefundEntity refundEntity);
  64. void cancelOrder(OrderEntity orderInfo);
  65. /**
  66. * 获取首页展示信息--会员购买率相关
  67. *
  68. * @param params
  69. * @return
  70. */
  71. int getUserOrderInfo(Map<String, Object> params);
  72. Map getLogistics(Long id);
  73. OrderEntity queryInfos(Long id);
  74. Double getTotalActualPrice(String merchOrderSn);
  75. Map orderSubmit(List<OfflineCartEntity> offlineCartEntityList,SysUserEntity user);
  76. int confirmPay(Long id, String payFlag,String orderSnWx);
  77. List<OrderEntity> queryExportList(Map<String, Object> map);
  78. /**
  79. * 导入订单快递信息
  80. *
  81. * @param orderExpressDtoList
  82. * @return
  83. */
  84. int uploadExcel(List<OrderExpressDto> orderExpressDtoList);
  85. List<OrderEntity> promOrderList(Map<String, Object> map);
  86. int queryPromOrderTotal(Map<String, Object> map);
  87. List<OrderEntity> promOrderListExport(Map<String, Object> map);
  88. List<OrderEntity> storeTopicOrderList(Map<String, Object> map);
  89. int queryStoreTopicOrderTotal(Map<String, Object> map);
  90. /**
  91. * 获取ccnet需要重发的订单数据
  92. * @param map
  93. * @return
  94. */
  95. List<WxOrderEntity> wxOrderResendQueryAllList(Map<String, Object> map);
  96. List<OrderRecognitionDto> queryOrderListByRecognition(Map<String, Object> map);
  97. int queryOrderListByRecognitionTotal(Map<String, Object> map);
  98. /**
  99. * 提交订单并付款
  100. * @param param
  101. * @param user
  102. * @return
  103. */
  104. Map offlineRetailSubmit(Map param, SysUserEntity user);
  105. OrderEntity queryObjectByOrderSn(String orderSn);
  106. void orderRefund(OrderEntity orderInfo, String sessionId) throws Exception;
  107. }