| | |
| | | END, insertTime DESC |
| | | </select> |
| | | |
| | | <select id="queryRegistrationRecord1" resultType="map"> |
| | | select |
| | | CAST(id AS CHAR(20)) as id, |
| | | appUserId, |
| | | studentIds, |
| | | DATE_FORMAT(insertTime, '%Y-%m-%d %H:%i') as insertTime, |
| | | `status` |
| | | from t_course_package_order where state = 1 |
| | | <if test="null != coursePackageId"> |
| | | and coursePackageId = #{coursePackageId} |
| | | </if> |
| | | <if test="null != userIds"> |
| | | and appUserId in |
| | | <foreach collection="userIds" item="item" index="index" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="null != studentIds"> |
| | | and studentId in |
| | | <foreach collection="studentIds" item="item" index="index" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | order by |
| | | insertTime DESC |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="queryWalkInStudentList" resultType="map"> |
| | | select |