ShipMapper.java 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. package com.caimei365.order.mapper;
  2. import com.caimei365.order.model.po.*;
  3. import com.caimei365.order.model.vo.*;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import java.util.List;
  6. /**
  7. * Description
  8. *
  9. * @author : Charles
  10. * @date : 2021/8/5
  11. */
  12. @Mapper
  13. public interface ShipMapper {
  14. /**
  15. * 机构订单列表
  16. */
  17. List<ShopOrderVo> getShopOrderList(Integer shopId, Integer sendOutStatus, Integer payStatus, String shopOrderNo, String receiver);
  18. /**
  19. * 供应商结算列表
  20. */
  21. List<SettlementVo> getSettlementList(Integer shopId, Integer payStatus, String shopOrderNo, String name);
  22. /**
  23. * 发货页面子订单数据
  24. * @param shopOrderId 子订单Id
  25. */
  26. ShopOrderVo getShopOrder(Integer shopOrderId);
  27. /**
  28. * (收款买家)收款状态:1待收款、2部分收款、3已收款
  29. * @param orderId 订单Id
  30. */
  31. Integer getOrderReceiptStatus(Integer orderId);
  32. /**
  33. * 物流公司
  34. * @param value 快递公司代码
  35. */
  36. List<CompanyVo> getLogisticsCompany(String value);
  37. /**
  38. * 统计物流批次
  39. */
  40. int countLogisticsBatch(Integer orderId);
  41. /**
  42. * 保存 物流批次
  43. * @param logisticsBatch LogisticsBatchPo
  44. */
  45. void insertLogisticsBatch(LogisticsBatchPo logisticsBatch);
  46. /**
  47. * 更新物流批次
  48. */
  49. void updateLogisticsBatchRemark(LogisticsBatchVo logisticsBatch);
  50. /**
  51. * 订单商品
  52. * @param orderProductId 订单商品Id
  53. */
  54. OrderProductVo getOrderProductById(Integer orderProductId);
  55. /**
  56. * 保存 发货物流记录
  57. * @param logisticsRecord LogisticsRecordPo
  58. */
  59. void insertLogisticsRecord(LogisticsRecordPo logisticsRecord);
  60. /**
  61. * 保存订单商品未出库数量
  62. * @param orderProductId 订单商品Id
  63. * @param notOutStore 未出库数量
  64. */
  65. void updateNotOutStore(Integer orderProductId, int notOutStore);
  66. /**
  67. * 保存 物流跟踪信息
  68. * @param logisticsInformation LogisticsInformationPo
  69. */
  70. void insertLogisticsInformation(LogisticsInformationPo logisticsInformation);
  71. /**
  72. * 修改子订单发货状态
  73. * @param shopOrderId 子订单Id
  74. * @param outStoreNum 已经发货的商品数量
  75. * @param outStoreTimes 子订单发货批次 默认值 = 0 即没过发货
  76. * @param sendOutStatus 发货状态:1待发货、2部分发货、3已发货
  77. */
  78. void updateShopOrderShip(Integer shopOrderId, Integer outStoreNum, Integer outStoreTimes, Integer sendOutStatus);
  79. /**
  80. * 子订单发货状态列表
  81. * @param orderId 订单Id
  82. */
  83. List<Integer> getAllSendOutStatus(Integer orderId);
  84. /**
  85. * 修改主订单发货状态
  86. * @param orderId 订单Id
  87. * @param sendOutStatus 发货状态:1待发货、2部分发货、3已发货
  88. * @param status 订单状态
  89. */
  90. void updateOrderShip(Integer orderId, Integer sendOutStatus, Integer status);
  91. /**
  92. * 获取订单Id
  93. * @param shopOrderId 子订单Id
  94. */
  95. Integer getOrderIdByShopOrder(Integer shopOrderId);
  96. /**
  97. * 发货物流批次
  98. * @param logisticsBatchId 发货物流批次Id
  99. */
  100. LogisticsBatchVo getLogisticsBatchById(Integer logisticsBatchId);
  101. /**
  102. * 删除物流信息
  103. * @param logisticsInfoId 物流信息Id
  104. */
  105. void deleteLogisticsInfoByInfoId(Integer logisticsInfoId);
  106. /**
  107. * 删除物流批次
  108. * @param logisticsBatchId 发货物流批次Id
  109. */
  110. void deleteLogisticsBatchByBatchId(Integer logisticsBatchId);
  111. /**
  112. * 删除物流记录
  113. * @param logisticsBatchId 发货物流批次Id
  114. */
  115. void deleteLogisticsRecordByBatchId(Integer logisticsBatchId);
  116. /**
  117. * 删除物流信息
  118. * @param logisticsBatchId 发货物流批次Id
  119. */
  120. void deleteLogisticsInfoByBatchId(Integer logisticsBatchId);
  121. /**
  122. * 当前批次发货商品数据
  123. * @param logisticsBatchId 发货物流批次Id
  124. */
  125. List<LogisticsRecordVo> getLogisticsRecord(Integer logisticsBatchId);
  126. /**
  127. * 结算记录
  128. * @param shopOrderId 子订单Id
  129. */
  130. List<PayShopRecordPo> getPayShopRecordList(Integer shopOrderId);
  131. /**
  132. * 获取客服名称
  133. */
  134. String getConsignmentName(String openId);
  135. /**
  136. * 子订单所属供应商Id
  137. */
  138. Integer getShopIdByShopOrderId(Integer shopOrderId);
  139. /**
  140. * 采美供应商发货分享码使用记录Id
  141. */
  142. Integer getShipShareCodeRecordId(String openId, Integer shopOrderId);
  143. /**
  144. * 采美供应商发货分享码
  145. */
  146. OrderShareCodeVo getShipShareCode(String shareCode, Integer shopOrderId);
  147. /**
  148. * 保存发货分享码使用记录
  149. */
  150. void insertShipShareCodeRecord(OrderShareCodeRecordVo codeRecord);
  151. /**
  152. * 删除发货分享码使用记录
  153. */
  154. void deleteShipShareCodeRecord(Integer shopOrderId);
  155. /**
  156. * 新增发货分享码
  157. */
  158. void insertShipShareCode(OrderShareCodeVo shareCode);
  159. /**
  160. * 更新发货分享码
  161. */
  162. void updateShipShareCode(OrderShareCodeVo orderCodeVo);
  163. /**
  164. * 查看商品资质信息
  165. */
  166. List<QualificationVo> getProductQualification(Integer logisticsBatchId);
  167. /**
  168. * 查询商品资质图片
  169. */
  170. List<String> getQualificationImage(Integer recordId);
  171. /**
  172. * 查询商品资质文件
  173. */
  174. List<QualificationPo> getQualificationFile(Integer recordId);
  175. }