|
@@ -13,47 +13,48 @@ import java.util.Map;
|
|
|
public interface PracticeGroupDao extends com.ym.mec.common.dal.BaseDAO<Long, PracticeGroup> {
|
|
|
|
|
|
/**
|
|
|
+ * @param userId: 用户编号
|
|
|
+ * @param startDate: 开始时间
|
|
|
+ * @param endDate: 结束时间
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.entity.PracticeGroup>
|
|
|
* @describe 获取学生指定日期内预约的陪练课
|
|
|
* @author Joburgess
|
|
|
* @date 2020/1/31
|
|
|
- * @param userId: 用户编号
|
|
|
- * @param startDate: 开始时间
|
|
|
- * @param endDate: 结束时间
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.entity.PracticeGroup>
|
|
|
*/
|
|
|
List<PracticeGroup> getUserPracticeCoursesWithDateRange(@Param("userId") Integer userId,
|
|
|
@Param("startDate") Date startDate,
|
|
|
@Param("endDate") Date endDate);
|
|
|
|
|
|
/**
|
|
|
+ * @param userId:
|
|
|
+ * @return com.ym.mec.biz.dal.entity.PracticeGroup
|
|
|
* @describe 获取学生的免费陪练课
|
|
|
* @author Joburgess
|
|
|
* @date 2020/2/24
|
|
|
- * @param userId:
|
|
|
- * @return com.ym.mec.biz.dal.entity.PracticeGroup
|
|
|
*/
|
|
|
PracticeGroup getUserFreePracticeGroup(@Param("userId") Integer userId);
|
|
|
|
|
|
/**
|
|
|
+ * @param groups:
|
|
|
+ * @return int
|
|
|
* @describe 批量更新
|
|
|
* @author Joburgess
|
|
|
* @date 2020/2/23
|
|
|
- * @param groups:
|
|
|
- * @return int
|
|
|
*/
|
|
|
int batchUpdate(@Param("groups") List<PracticeGroup> groups);
|
|
|
|
|
|
/**
|
|
|
+ * @param userId:
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.entity.PracticeGroup>
|
|
|
* @describe 统计用户的申请记录
|
|
|
* @author Joburgess
|
|
|
* @date 2020/2/3
|
|
|
- * @param userId:
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.entity.PracticeGroup>
|
|
|
*/
|
|
|
int countUserPracticeApplyRecord(@Param("userId") Integer userId);
|
|
|
|
|
|
/**
|
|
|
* count陪练课列表数量
|
|
|
+ *
|
|
|
* @param params
|
|
|
* @return
|
|
|
*/
|
|
@@ -61,6 +62,7 @@ public interface PracticeGroupDao extends com.ym.mec.common.dal.BaseDAO<Long, Pr
|
|
|
|
|
|
/**
|
|
|
* 获取陪练课列表
|
|
|
+ *
|
|
|
* @param params
|
|
|
* @return
|
|
|
*/
|
|
@@ -68,6 +70,7 @@ public interface PracticeGroupDao extends com.ym.mec.common.dal.BaseDAO<Long, Pr
|
|
|
|
|
|
/**
|
|
|
* 获取已上课程数量
|
|
|
+ *
|
|
|
* @param practiceGroupIds
|
|
|
* @return
|
|
|
*/
|
|
@@ -75,6 +78,7 @@ public interface PracticeGroupDao extends com.ym.mec.common.dal.BaseDAO<Long, Pr
|
|
|
|
|
|
/**
|
|
|
* 修改老师
|
|
|
+ *
|
|
|
* @param practiceGroupId
|
|
|
* @param teacherId
|
|
|
*/
|
|
@@ -82,95 +86,99 @@ public interface PracticeGroupDao extends com.ym.mec.common.dal.BaseDAO<Long, Pr
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * @describe 获取学生指定的课程组
|
|
|
- * @author Joburgess
|
|
|
- * @date 2020/2/19
|
|
|
* @param userId:
|
|
|
* @param groupId:
|
|
|
* @return com.ym.mec.biz.dal.entity.PracticeGroup
|
|
|
+ * @describe 获取学生指定的课程组
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2020/2/19
|
|
|
*/
|
|
|
PracticeGroup findUserPracticeGroup(@Param("userId") Integer userId,
|
|
|
@Param("groupId") Long groupId);
|
|
|
|
|
|
/**
|
|
|
- * @describe 获取学生指定的课程组
|
|
|
- * @author Joburgess
|
|
|
- * @date 2020/2/19
|
|
|
* @param userId:
|
|
|
* @param groupId:
|
|
|
* @return com.ym.mec.biz.dal.entity.PracticeGroup
|
|
|
+ * @describe 获取学生指定的课程组
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2020/2/19
|
|
|
*/
|
|
|
PracticeGroupDto findUserPracticeGroup2(@Param("userId") Integer userId,
|
|
|
- @Param("groupId") Long groupId);
|
|
|
+ @Param("groupId") Long groupId);
|
|
|
|
|
|
/**
|
|
|
+ * @param userId: 学生编号
|
|
|
+ * @return com.ym.mec.biz.dal.entity.PracticeGroup
|
|
|
* @describe 获取学生最后一次购买的陪练课组
|
|
|
* @author Joburgess
|
|
|
* @date 2020/2/17
|
|
|
- * @param userId: 学生编号
|
|
|
- * @return com.ym.mec.biz.dal.entity.PracticeGroup
|
|
|
*/
|
|
|
PracticeGroup findUserLatestPracticeGroup(@Param("userId") Integer userId);
|
|
|
|
|
|
/**
|
|
|
+ * @param userId: 用户编号
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.dto.PracticeCourseDto>
|
|
|
* @describe 获取用户购买的陪练课
|
|
|
* @author Joburgess
|
|
|
* @date 2020/2/18
|
|
|
- * @param userId: 用户编号
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.dto.PracticeCourseDto>
|
|
|
*/
|
|
|
List<PracticeCourseDto> findUserBuyPracticeGroups(@Param("userId") Integer userId);
|
|
|
|
|
|
|
|
|
List<PracticeCourseDto> findUserBuyPracticeGroupsWithDate(@Param("userId") Integer userId,
|
|
|
- @Param("date") Date date);
|
|
|
+ @Param("date") Date date);
|
|
|
|
|
|
/**
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.entity.PracticeGroup>
|
|
|
* @describe 获取已经达到截至时间的陪练课程组
|
|
|
* @author Joburgess
|
|
|
* @date 2020/2/23
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.entity.PracticeGroup>
|
|
|
*/
|
|
|
List<PracticeGroup> findHistoryPracticeGroups();
|
|
|
|
|
|
/**
|
|
|
+ * @param groupId:
|
|
|
+ * @return com.ym.mec.biz.dal.entity.PracticeGroup
|
|
|
* @describe
|
|
|
* @author Joburgess
|
|
|
* @date 2020/2/24
|
|
|
- * @param groupId:
|
|
|
- * @return com.ym.mec.biz.dal.entity.PracticeGroup
|
|
|
*/
|
|
|
PracticeGroup lockPracticeGroup(@Param("groupId") Integer groupId);
|
|
|
|
|
|
/**
|
|
|
+ * @param userId:
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.entity.PracticeGroup>
|
|
|
* @describe 获取用户指定状态的陪练课程组
|
|
|
* @author Joburgess
|
|
|
* @date 2020/2/26
|
|
|
- * @param userId:
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.entity.PracticeGroup>
|
|
|
*/
|
|
|
List<PracticeGroup> findUserStatusPracticeGroups(@Param("userId") Integer userId,
|
|
|
- @Param("groupStatus")GroupStatusEnum groupStatusEnum);
|
|
|
+ @Param("groupStatus") GroupStatusEnum groupStatusEnum);
|
|
|
|
|
|
/**
|
|
|
- * @describe 获取用户指定日期的未成功订单
|
|
|
- * @author Joburgess
|
|
|
- * @date 2020/3/2
|
|
|
* @param userId:
|
|
|
* @param date:
|
|
|
* @return java.util.List<com.ym.mec.biz.dal.entity.PracticeGroup>
|
|
|
+ * @describe 获取用户指定日期的未成功订单
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2020/3/2
|
|
|
*/
|
|
|
List<PracticeGroup> findUserLockPracticeGroupWithDate(@Param("userId") Integer userId,
|
|
|
@Param("date") Date date);
|
|
|
|
|
|
/**
|
|
|
- * @describe 获取用户指定日期及之前的未成功订单
|
|
|
- * @author Joburgess
|
|
|
- * @date 2020/3/2
|
|
|
* @param userId:
|
|
|
* @param date:
|
|
|
* @return java.util.List<com.ym.mec.biz.dal.entity.PracticeGroup>
|
|
|
+ * @describe 获取用户指定日期及之前的未成功订单
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2020/3/2
|
|
|
*/
|
|
|
List<PracticeGroup> findUserLockPracticeGroupWithDateBefore(@Param("userId") Integer userId,
|
|
|
@Param("date") Date date);
|
|
|
+
|
|
|
+ List<PracticeGroupDto> findPracticeGroupsReviews(Map<String, Object> params);
|
|
|
+
|
|
|
+ Integer countPracticeGroupReviews(Map<String, Object> params);
|
|
|
}
|