| | |
| | | SUM( py.laveClassHours ) AS restHours, |
| | | SUM( py.giftClassHours ) as giftHours |
| | | FROM |
| | | t_course_package_payment py |
| | | t_course_package_order_student py |
| | | |
| | | where py.studentId = #{tStudentId} |
| | | |
| | |
| | | pg.NAME AS className, |
| | | pg.`type` AS classType |
| | | FROM |
| | | t_course_package_payment py |
| | | t_course_package_order_student py |
| | | LEFT JOIN t_course_package pg ON py.coursePackageId = pg.id |
| | | |
| | | <where> |
| | | py.status = 1 |
| | | <if test="null != tStudentId"> |
| | | and py.studentId = #{tStudentId} |
| | | </if> |
| | |
| | | FROM t_course_package_payment py |
| | | where py.studentId = #{tStudentId} |
| | | </select> |
| | | <select id="getHoliList" resultType="com.dsh.course.entity.dto.ClassListDto"> |
| | | select |
| | | od.id,od.insertTime as insertTime, cp.name as className,cp.type as classType |
| | | from t_course_package_order od |
| | | left join t_course_package cp on od.coursePackageId = cp.id |
| | | |
| | | WHERE od.payStatus = 2 and cp.type = 2 |
| | | |
| | | |
| | | |
| | | </select> |
| | | </mapper> |