| | |
| | | <mapper namespace="com.dsh.course.mapper.CoursePackageStudentMapper"> |
| | | |
| | | |
| | | |
| | | <select id="queryCoursePackageStudentList" resultType="map"> |
| | | select |
| | | CAST(id AS CHAR(20)) as id, |
| | | appUserId, |
| | | studentId, |
| | | signInOrNot, |
| | | reservationStatus |
| | | from t_course_package_student where coursePackageSchedulingId = #{coursePackageSchedulingId} |
| | | <if test="null != userId"> |
| | | and appUserId in |
| | | <foreach collection="appUserId" item="item" index="index" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="null != studentId"> |
| | | and studentId in |
| | | <foreach collection="studentId" item="item" index="index" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | order by insertTime desc |
| | | </select> |
| | | </mapper> |