OrderService.java 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. package com.goafanti.order.service;
  2. import java.math.BigDecimal;
  3. import java.text.ParseException;
  4. import com.goafanti.core.mybatis.page.Pagination;
  5. import com.goafanti.order.bo.FundingListBo;
  6. import com.goafanti.order.bo.OrderDetailBo;
  7. public interface OrderService {
  8. /**
  9. * 查询商品详情
  10. * @param commodityId 商品id
  11. * @param orderType 订单类型
  12. * @return
  13. */
  14. OrderDetailBo selectCommodityDetail(String commodityId,Integer orderType);
  15. /**
  16. * 添加意向
  17. * @param orderNo 订单编号
  18. * @param commodityId 商品id
  19. * @param commodityMode 商品型号
  20. * @param commodityQuantity 商品数量
  21. * @param commodityType 商品类型
  22. * @param createTime 创建时间
  23. * @param remarks 备注
  24. * @return
  25. */
  26. int addIntention(Long orderNo, String commodityId, String commodityMode, Integer commodityQuantity,Integer commodityType,
  27. String createTime, String remarks) throws ParseException ;
  28. /**
  29. * 支付定金
  30. * @param orderNo 订单编号
  31. * @param fundAmount 金额
  32. * @return remarks 备注
  33. */
  34. int updatePayForFirst(Long orderNo, BigDecimal fundAmount,String remarks);
  35. /**
  36. * 支付尾款
  37. * @param orderNo 订单编号
  38. * @param fundAmount 金额
  39. * @param remarks 备注
  40. * @return
  41. */
  42. int updatePayForLast(Long orderNo, BigDecimal fundAmount, String remarks);
  43. /**
  44. *
  45. * @param confirm 是否
  46. * @return
  47. */
  48. Pagination<OrderDetailBo> selectOrderList(boolean confirm,Integer pageNo,Integer PageSize);
  49. /**
  50. * 查询订单详情
  51. * @param orderNo
  52. * @return
  53. */
  54. OrderDetailBo selectOrderDetail(Long orderNo);
  55. /**
  56. * 查询流水记录
  57. * @param orderNo
  58. * @return
  59. */
  60. Pagination<FundingListBo> selectFundingHistory(Long orderNo,Integer pageNo,Integer PageSize);
  61. /**
  62. * 提现
  63. * @param orderNo
  64. * @return
  65. */
  66. int updateApplyForWithdraw(Long orderNo,String remarks);
  67. /**
  68. * 取消订单
  69. * @param orderNo
  70. * @return
  71. */
  72. int updateApplyForCancel(Long orderNo);
  73. /**
  74. * 确认意向订单
  75. * @param orderNo 订单编号
  76. * @param confirm 是否确认
  77. * @return
  78. */
  79. int updateConfirmIntention(Long orderNo, boolean confirm);
  80. }