OrderService.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. package com.ym.mec.collectfee.service;
  2. import com.alibaba.fastjson.JSON;
  3. import com.ym.mec.collectfee.common.page.PageInfo;
  4. import com.ym.mec.collectfee.common.service.BaseService;
  5. import com.ym.mec.collectfee.entity.*;
  6. import com.ym.mec.collectfee.utils.yqpay.YqPayUtil;
  7. import org.apache.ibatis.annotations.Param;
  8. import javax.xml.bind.JAXBException;
  9. import java.math.BigDecimal;
  10. import java.util.*;
  11. public interface OrderService extends BaseService<Integer, Order> {
  12. /**
  13. * 根据学生编号,获取订单列表
  14. *
  15. * @param userId
  16. * @return
  17. */
  18. List<Order> getOrderByUserId(Integer userId);
  19. /**
  20. * 获取参与活动的数量
  21. * @param branchId
  22. * @return
  23. */
  24. int getPromotionCount(int branchId);
  25. int getUserPromotionCount(int userId);
  26. /**
  27. * 根据乐团编号,获取订单列表
  28. *
  29. * @param userId
  30. * @return
  31. */
  32. List<Order> getOrderByClassId(Integer account, Integer classId, Integer type, String voicyPart,String startTime,String endTime, Integer branchId);
  33. /**
  34. * 支付成功后推送订单列表
  35. *
  36. * @param batchNum 批次号
  37. * @return
  38. */
  39. String pushOrder(String batchNum);
  40. /**
  41. * 查询某声部报名成功人数
  42. *
  43. * @param poName 乐团名称
  44. * @param voicePort 声部名称
  45. * @return
  46. */
  47. int countOrder(String poName, String voicePort);
  48. /**
  49. * 根据系统订单号获取订单
  50. *
  51. * @param orderNo 系统订单号
  52. * @return
  53. */
  54. Order getOrderByOrderNo(String orderNo);
  55. /**
  56. * 根据乐团编号获取乐团信息
  57. *
  58. * @param schoolId
  59. * @return
  60. */
  61. Object getSchoolDetail(Integer schoolId);
  62. /**
  63. * 获取支付中和成功的订单数
  64. *
  65. * @return
  66. */
  67. int getPayOrderNums();
  68. /**
  69. * 获取支付中的订单
  70. *
  71. * @return
  72. */
  73. List<Order> findPayingOrders();
  74. /**
  75. * 获取支付的参数
  76. *
  77. * @param account
  78. * @param order
  79. * @param school
  80. * @return
  81. * @throws Exception
  82. */
  83. Map getPayMap(Account account, Order order, School school) throws Exception;
  84. /**
  85. * 根据id和status状态更新订单
  86. *
  87. * @param upMap
  88. * @return
  89. */
  90. int updateByIdAndStatus(Map upMap);
  91. List<Order> findPayingOrdersOver(Map<String,Object> map);
  92. Integer getPayingOrderNums(int groupId);
  93. Order findOrderByStatus(Integer userId,Integer status);
  94. Order findRegOrderByStatus(Integer userId, Integer status);
  95. PageInfo<Order> queryOrderPage(OrderQueryInfo queryInfo);
  96. Order getOrderStatusByOrderNo(String orderNo);
  97. }