|
@@ -4,6 +4,7 @@ import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
+import com.ym.mec.biz.dal.entity.ClassGroup;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
import com.ym.mec.biz.dal.dto.StudentAttendanceViewDto;
|
|
@@ -101,7 +102,7 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
* @param classGroupId
|
|
|
* @return
|
|
|
*/
|
|
|
- ClassGroupStudentMapper findClassStudentMapperByUserIdAndClassGroupId(@Param("userId") Integer userId, @Param("classGroupId") Integer classGroupId,@Param("status") String status);
|
|
|
+ ClassGroupStudentMapper findClassStudentMapperByUserIdAndClassGroupId(@Param("userId") Integer userId, @Param("classGroupId") Integer classGroupId, @Param("status") String status);
|
|
|
|
|
|
/**
|
|
|
* @param classGroupIds: 班级编号列表
|
|
@@ -172,33 +173,42 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
Integer countClassGroupStudentNum(@Param("classGroupId") Integer classGroupId);
|
|
|
|
|
|
/**
|
|
|
+ * @param classGroupId: 班级编号
|
|
|
+ * @param userIds: 学生编号
|
|
|
+ * @return java.lang.Integer
|
|
|
* @describe 统计指定班级的重复人数
|
|
|
* @author Joburgess
|
|
|
* @date 2019/11/22
|
|
|
- * @param classGroupId: 班级编号
|
|
|
- * @param userIds: 学生编号
|
|
|
- * @return java.lang.Integer
|
|
|
*/
|
|
|
Integer countClassGroupExitStudentNum(@Param("classGroupId") Integer classGroupId,
|
|
|
@Param("userIds") List<Integer> userIds);
|
|
|
|
|
|
/**
|
|
|
+ * @param userId: 用户编号
|
|
|
+ * @param groupType: 乐团编号
|
|
|
+ * @return java.lang.Integer
|
|
|
* @describe 统计用户对应加入乐团/小课/试听课的数量
|
|
|
* @author Joburgess
|
|
|
* @date 2019/11/29
|
|
|
- * @param userId: 用户编号
|
|
|
- * @param groupType: 乐团编号
|
|
|
- * @return java.lang.Integer
|
|
|
*/
|
|
|
Integer countUserGroups(@Param("userId") Integer userId,
|
|
|
@Param("groupType") String groupType);
|
|
|
|
|
|
/**
|
|
|
* 查询学生所在的班级编号
|
|
|
+ *
|
|
|
* @param musicGroupId
|
|
|
* @param userId
|
|
|
* @param groupTpye
|
|
|
* @return
|
|
|
*/
|
|
|
- List<Integer> queryClassGroupIdList(@Param("musicGroupId") String musicGroupId, @Param("userId") Integer userId, @Param("groupType") GroupType groupType);
|
|
|
+ List<Integer> queryClassGroupIdList(@Param("musicGroupId") String musicGroupId, @Param("userId") Integer userId, @Param("groupType") GroupType groupType);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询乐团某种类型班级的学生
|
|
|
+ * @param musicGroupId
|
|
|
+ * @param classGroupType
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ List<ClassGroupStudentMapper> findMusicGroupClassGroupByType(@Param("musicGroupId") String musicGroupId, @Param("classGroupType") ClassGroupTypeEnum classGroupType);
|
|
|
}
|