|
@@ -36,12 +36,12 @@ public interface StudentPaymentOrderDao extends BaseDAO<Long, StudentPaymentOrde
|
|
|
@Param("status") String status);
|
|
|
|
|
|
/**
|
|
|
- * @describe 统计学员剩余课时的课程费用
|
|
|
- * @author Joburgess
|
|
|
- * @date 2019/12/3
|
|
|
* @param vipGroupId:
|
|
|
* @param userId:
|
|
|
* @return java.math.BigDecimal
|
|
|
+ * @describe 统计学员剩余课时的课程费用
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2019/12/3
|
|
|
*/
|
|
|
BigDecimal sumSurplusCourseFee(@Param("vipGroupId") String vipGroupId,
|
|
|
@Param("userId") Integer userId);
|
|
@@ -52,14 +52,14 @@ public interface StudentPaymentOrderDao extends BaseDAO<Long, StudentPaymentOrde
|
|
|
* 根据学生vip课获取非失败缴费订单
|
|
|
*/
|
|
|
StudentPaymentOrder findNotFailedOrderByStudentVipGroup(@Param("vipGroupId") Long vipGroupId,
|
|
|
- @Param("userId") Integer userId);
|
|
|
+ @Param("userId") Integer userId);
|
|
|
|
|
|
/**
|
|
|
+ * @param musicGroupId: 乐团编号/vip课编号
|
|
|
+ * @return java.lang.Integer
|
|
|
* @describe 统计报名人数
|
|
|
* @author Joburgess
|
|
|
* @date 2019/11/13
|
|
|
- * @param musicGroupId: 乐团编号/vip课编号
|
|
|
- * @return java.lang.Integer
|
|
|
*/
|
|
|
Integer countStudentPaymentNum(@Param("musicGroupId") String musicGroupId);
|
|
|
|
|
@@ -120,6 +120,7 @@ public interface StudentPaymentOrderDao extends BaseDAO<Long, StudentPaymentOrde
|
|
|
|
|
|
/**
|
|
|
* 查询支付中超时的订单
|
|
|
+ *
|
|
|
* @param orderNoList
|
|
|
* @param status
|
|
|
* @param beforeTime
|
|
@@ -128,30 +129,31 @@ public interface StudentPaymentOrderDao extends BaseDAO<Long, StudentPaymentOrde
|
|
|
List<StudentPaymentOrder> findOrdersOverTime(@Param("orderNoList") List<String> orderNoList, @Param("status") DealStatusEnum status, @Param("beforeTime") Date beforeTime);
|
|
|
|
|
|
/**
|
|
|
+ * @param musicGroupId: 乐团编号
|
|
|
+ * @param userId: 用户编号
|
|
|
+ * @return int
|
|
|
* @describe 根据乐团和用户编号统计剩余课时
|
|
|
* @author Joburgess
|
|
|
* @date 2019/12/4
|
|
|
- * @param musicGroupId: 乐团编号
|
|
|
- * @param userId: 用户编号
|
|
|
- * @return int
|
|
|
*/
|
|
|
int countSurplusCourseByMusicGroupAndUser(@Param("musicGroupId") String musicGroupId, @Param("userId") Integer userId);
|
|
|
|
|
|
/**
|
|
|
- * @describe 统计乐团或vip课的收入金额
|
|
|
- * @author Joburgess
|
|
|
- * @date 2019/12/4
|
|
|
* @param musicGroupId: 乐团或小课金额
|
|
|
* @param groupType:
|
|
|
* @return java.math.BigDecimal
|
|
|
+ * @describe 统计乐团或vip课的收入金额
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2019/12/4
|
|
|
*/
|
|
|
BigDecimal sumGroupIncomeFee(@Param("musicGroupId") String musicGroupId,
|
|
|
@Param("groupType") String groupType);
|
|
|
|
|
|
- List<StudentPaymentOrder> findStudentPaymentOrder(@Param("groupType") String groupType,@Param("musicGroupId") String musicGroupId);
|
|
|
+ List<StudentPaymentOrder> findStudentPaymentOrder(@Param("groupType") String groupType, @Param("musicGroupId") String musicGroupId);
|
|
|
|
|
|
/**
|
|
|
* 获取零星订单
|
|
|
+ *
|
|
|
* @param userId
|
|
|
* @param sporadicId
|
|
|
* @param groupType
|
|
@@ -162,8 +164,12 @@ public interface StudentPaymentOrderDao extends BaseDAO<Long, StudentPaymentOrde
|
|
|
|
|
|
/**
|
|
|
* 获取订单金额map
|
|
|
+ *
|
|
|
* @param paymentOrderNo
|
|
|
* @return
|
|
|
*/
|
|
|
List<Map<Long, BigDecimal>> queryActualAmount(@Param("paymentOrderNo") List<Long> paymentOrderNo);
|
|
|
+
|
|
|
+
|
|
|
+ List<StudentPaymentOrder> findFixOrder(@Param("status") DealStatusEnum status, @Param("paymentChannel") String paymentChannel);
|
|
|
}
|