| | |
| | | <mapper namespace="com.dsh.course.mapper.CoursePackageStudentMapper"> |
| | | |
| | | |
| | | <select id="queryStuDeduClassHourNums" resultType="com.dsh.course.entity.CoursePackageStudent"> |
| | | SELECT * |
| | | FROM t_course_package_student |
| | | UNION ALL |
| | | SELECT * |
| | | FROM t_course_package_student1 |
| | | UNION ALL |
| | | SELECT * |
| | | FROM t_course_package_student2 |
| | | UNION ALL |
| | | SELECT * |
| | | FROM t_course_package_student3 |
| | | UNION ALL |
| | | SELECT * |
| | | FROM t_course_package_student4 |
| | | UNION ALL |
| | | SELECT * |
| | | FROM t_course_package_student5 |
| | | WHERE signInOrNot = 1 |
| | | <if test="courseId != null"> |
| | | and coursePackageId = #{courseId} |
| | | </if> |
| | | <if test="stuId != null "> |
| | | and studentId = #{stuId} |
| | | </if> |
| | | <if test="appUserId != null"> |
| | | and appUserId = #{appUserId} |
| | | </if> |
| | | </select> |
| | | <select id="queryAppUserOfStuAttendClass" resultType="com.dsh.course.entity.CoursePackageStudent"> |
| | | SELECT * |
| | | FROM t_course_package_student |
| | | UNION ALL |
| | | SELECT * |
| | | FROM t_course_package_student1 |
| | | UNION ALL |
| | | SELECT * |
| | | FROM t_course_package_student2 |
| | | UNION ALL |
| | | SELECT * |
| | | FROM t_course_package_student3 |
| | | UNION ALL |
| | | SELECT * |
| | | FROM t_course_package_student4 |
| | | UNION ALL |
| | | SELECT * |
| | | FROM t_course_package_student5 |
| | | WHERE signInOrNot = 1 and reservationStatus = 1 |
| | | <if test=" appUserId != null"> |
| | | and appUserId = #{appUserId} |
| | | </if> |
| | | <if test="coursePackageIds.size >0"> |
| | | and coursePackageId in |
| | | <foreach collection="coursePackageIds" close=")" index="index" open="(" separator="," item="item"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | </mapper> |