NewOrderDao.java 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. package com.caimei.modules.order.dao;
  2. import com.caimei.modules.coupon.entity.CmCoupon;
  3. import com.caimei.modules.coupon.entity.CmCouponOrderRecord;
  4. import com.caimei.modules.order.entity.*;
  5. import com.caimei.modules.product.entity.CmPromotion;
  6. import com.caimei.modules.user.entity.NewCmSp;
  7. import com.thinkgem.jeesite.common.persistence.CrudDao;
  8. import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
  9. import org.apache.ibatis.annotations.Param;
  10. import java.util.Date;
  11. import java.util.List;
  12. import java.util.Set;
  13. @MyBatisDao
  14. public interface NewOrderDao extends CrudDao<NewOrder> {
  15. List<CmOrderPaymentVoucherVo> findVoucherVoOrderID(@Param("orderId") Integer orderID);
  16. List<CmVoucherImage> findCmVoucherImageoOrderID(@Param("id") Integer id);
  17. Integer updateClauseContent(NewOrder newOrder);
  18. NewOrder findByOrderID(@Param("orderID") Integer orderID);
  19. int confirmOrder(Integer orderID);
  20. void updateStatus(NewOrder order);
  21. NewOrder getOrderByShopOrderID(@Param("shopOrderID") String shopOrderID);
  22. void updatePayStatus(@Param("payStatus") String payStatus, @Param("orderID") Integer orderID);
  23. List<NewOrder> findOrderList(NewOrder newOrder);
  24. Double findPaidOrderID(@Param("orderID") Integer orderID);
  25. List<CmPromotion> findPromotionsByIds(@Param("promotionsIds") Set promotionsIds);
  26. CmPromotion getDbPromotionsByOrderId(@Param("orderId") Integer orderId, @Param("promotionsId") Integer promotionsId);
  27. int insertPromotionsRecord(CmPromotion promotion);
  28. int updatePromotionsRecord(CmPromotion promotion);
  29. /**
  30. * 置为已收款已付款
  31. * @param orderId
  32. */
  33. void updatePayAndReceipt(Integer orderId);
  34. /**
  35. * 子订单置为已收款已付款
  36. * @param orderId
  37. */
  38. void updatePayStatusSon(Integer orderId);
  39. /**
  40. * 删除此订单下订单促销
  41. *
  42. * @param orderId
  43. */
  44. void deleterPomotionsOrder(Integer orderId);
  45. /**
  46. * 更新订单付款状态和0成本标识
  47. *
  48. * @param newOrder
  49. */
  50. void updateOrderStatus(NewOrder newOrder);
  51. /**
  52. * 获取上线协销人员,排除采美默认协销经理
  53. *
  54. * @return ServiceProvider
  55. */
  56. List<NewCmSp> findServiceProviderList();
  57. /**
  58. * 修改订单返佣标识
  59. *
  60. * @param orderId
  61. */
  62. void updateByRebateFlag(Integer orderId);
  63. /**
  64. * 查询商品资质文件
  65. *
  66. * @param recordId
  67. * @return
  68. */
  69. List<CmFile> findQualificationFile(String recordId);
  70. /**
  71. * 查询资质图片
  72. *
  73. * @param recordId
  74. * @return
  75. */
  76. List<String> findQualificationImage(Integer recordId);
  77. /**
  78. * 删除所有的资质图片
  79. *
  80. * @param recordId
  81. */
  82. void deleteQualificationImage(Integer recordId);
  83. /**
  84. * 保存资质图片
  85. *
  86. * @param recordId
  87. * @param image
  88. */
  89. void insertQualificationImage(@Param("recordId") Integer recordId, @Param("image") String image);
  90. /**
  91. * 删除商品资质文件
  92. *
  93. * @param recordId
  94. */
  95. void deleteQualificationFile(Integer recordId);
  96. /**
  97. * 保存商品资质文件
  98. *
  99. * @param recordId
  100. * @param fileName
  101. * @param ossName
  102. */
  103. void insertQualificationFile(@Param("recordId") Integer recordId, @Param("fileName") String fileName, @Param("ossName") String ossName);
  104. /**
  105. * 查询短链接是否存在
  106. *
  107. * @param shortLink
  108. * @return
  109. */
  110. Integer findBYShortLink(String shortLink);
  111. /**
  112. * 保存短链接信息
  113. *
  114. * @param markId 短信类型
  115. * @param shortLink 短链接
  116. * @param url 跳转地址
  117. */
  118. void insertShortLink(@Param("markId") int markId, @Param("shortLink") String shortLink, @Param("url") String url);
  119. /**
  120. * 保存短信发送条数
  121. *
  122. * @param markId
  123. * @param num
  124. */
  125. void updateSendNum(@Param("markId") int markId, @Param("num") int num);
  126. /**
  127. * 获取订单定金商品Id
  128. * @param orderID
  129. * @return
  130. */
  131. Integer getDepositOrderProductId(Integer orderID);
  132. /**
  133. * 定金商品撤销收款,用户余额扣除
  134. */
  135. void updateUserMoneyByUserId(@Param("payTotalFee")Double payTotalFee,@Param("userID") Integer userID);
  136. /**
  137. * 查询订单优惠券信息
  138. *
  139. * @param orderID
  140. * @return
  141. */
  142. CmCouponOrderRecord findOrderCouponRecord(Integer orderID);
  143. /**
  144. * 查询优惠券信息
  145. *
  146. * @param clubCouponId
  147. * @return
  148. */
  149. CmCoupon findClubCouponById(Integer clubCouponId);
  150. /**
  151. * 保存优惠券与订单关联信息
  152. *
  153. * @param orderRecord
  154. */
  155. void insertCouponOrderRecord(CmCouponOrderRecord orderRecord);
  156. /**
  157. * 更新优惠券与订单关联信息
  158. *
  159. * @param orderRecord
  160. */
  161. void updateCouponOrderRecord(CmCouponOrderRecord orderRecord);
  162. /**
  163. * 删除优惠券与订单关联信息
  164. *
  165. * @param id
  166. */
  167. void deleteCouponOrderRecord(Integer id);
  168. List<OrderReceiptRelationPo> getUndividedPaidReceipt(@Param("currentTime")String currentTime,@Param("shopOrderIds")String shopOrderIds);
  169. List<OrderReceiptRelationPo> getOnlineBalance(String currentTime);
  170. List<OrderProductVo> getOrderProductByOrderId(Integer orderId);
  171. Double getOrderProductPaidAmount(Integer orderProductId);
  172. ShopOrderVo getShopOrderListByOrderId(Integer shopOrderId);
  173. List<ShopOrderVo> getShopOrderByOrderId(Integer orderId);
  174. Double getPaidShipping(Integer orderId, Integer shopId);
  175. String getShopCommercialCode(Integer shopId);
  176. OrderVo getOrderByOrderId(Integer orderId);
  177. void insertSplitAccount(SplitAccountPo splitAccount);
  178. Date findSplitTime();
  179. void updateOnlinePayFlag(@Param("onlinePayFlag") Integer onlinePayFlag,@Param("orderId") Integer orderId);
  180. void updateBrokerage(@Param("shopOrderID")Integer shopOrderID ,@Param("brokerage")Double brokerage);
  181. Integer findSupport(Integer shopOrderId);
  182. List<OrderProductVo> getOrderProductByShopOrderId(Integer shopOrderId);
  183. List<SplitAccountPo> getSplitAccountList(String mbOrderId);
  184. Double getPaidShopAmount(Integer shopOrderId);
  185. void updateShopOrderByPayStatus(@Param("shopOrderId")Integer shopOrderId,@Param("paidShop") Double paidShop,@Param("payStatus") Integer payStatus);
  186. void insertPayShop(PayShopPo payShop);
  187. void insertPayShopRecord(PayShopRecordPo shopRecord);
  188. void updateOrderByPayStatus(@Param("orderId")Integer orderId, @Param("payStatus")Integer payStatus);
  189. void updateBySplitStatus(String mbOrderId);
  190. Integer findOnlinePay(Integer orderID);
  191. String findSplitCode(String shopOrderId);
  192. Double findPayAmount(String shopOrderId);
  193. Double findShouldPayShopAmount(String shopOrderId);
  194. void updateSettleStatus(@Param("shopOrderId")String shopOrderId,@Param("productType") Integer productType);
  195. void updateShopOrderSettleStatus(@Param("shopOrderId")String shopOrderId, @Param("settleStatus")Integer settleStatus);
  196. void insertSettleRecord(SettleRecord settleRecord);
  197. Double findSettleSum(String shopOrderId);
  198. List<SettleRecord> findSettleRecord(Integer orderID);
  199. Double findSettleAmount(Integer orderID);
  200. Integer findShopOrderSize(Integer orderID);
  201. Integer findSplitCount(Integer orderID);
  202. List<SplitAccountPo> getSplitRecord(Integer orderID);
  203. Integer getSplitTime(Integer shopOrderId);
  204. }