ExamRegistrationPaymentDao.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package com.keao.edu.user.dao;
  2. import com.keao.edu.common.dal.BaseDAO;
  3. import com.keao.edu.user.dto.ExamRegistrationPaymentDto;
  4. import com.keao.edu.user.entity.ExamRegistrationPayment;
  5. import com.keao.edu.user.enums.TransStatusEnum;
  6. import org.apache.ibatis.annotations.Param;
  7. import java.util.Date;
  8. import java.util.List;
  9. import java.util.Map;
  10. public interface ExamRegistrationPaymentDao extends BaseDAO<Long, ExamRegistrationPayment> {
  11. /**
  12. * 获取用户项目未支付的订单
  13. *
  14. * @param examinationBasicId
  15. * @param userId
  16. * @return
  17. */
  18. ExamRegistrationPayment getExamIngOrder(@Param("examinationBasicId") Long examinationBasicId, @Param("userId") Integer userId);
  19. /**
  20. * 根据订单号获取订单
  21. *
  22. * @param orderNo
  23. * @return
  24. */
  25. ExamRegistrationPayment getByOrderNo(@Param("orderNo") String orderNo);
  26. /**
  27. * 根据状态获取订单
  28. *
  29. * @param status
  30. * @param payType
  31. * @return
  32. */
  33. List<ExamRegistrationPayment> getOrdersByStatus(@Param("status") String status, @Param("payType") String payType);
  34. /**
  35. * 获取过期未支付的订单列表
  36. *
  37. * @param orderNoList
  38. * @param transStatus
  39. * @param beforeTime
  40. * @return
  41. */
  42. List<ExamRegistrationPayment> findOrdersOverTime(@Param("orderNoList") List<String> orderNoList, @Param("transStatus") TransStatusEnum transStatus, @Param("beforeTime") Date beforeTime);
  43. /**
  44. * 获取支付列表
  45. *
  46. * @return
  47. */
  48. List<ExamRegistrationPaymentDto> getOrderPageList(Map<String, Object> params);
  49. /**
  50. * 获取订单总条数
  51. * @param params
  52. * @return
  53. */
  54. Integer getOrderListCount(Map<String, Object> params);
  55. /**
  56. * @describe 获取指定日期中分部考级项目的报名费用
  57. * @author Joburgess
  58. * @date 2020.07.16
  59. * @param examId:
  60. * @param organId:
  61. * @param days:
  62. * @return java.util.List<com.keao.edu.user.entity.ExamRegistrationPayment>
  63. */
  64. List<ExamRegistrationPayment> getWithExamOrganAndDay(@Param("examId") Long examId,
  65. @Param("organId") Integer organId,
  66. @Param("days") List<String> days);
  67. }