| | |
| | | <result column="state" property="state" /> |
| | | <result column="insertTime" property="insertTime" /> |
| | | </resultMap> |
| | | <select id="queryAllCoursePackage" resultType="com.dsh.course.entity.TCoursePackagePayment"> |
| | | SELECT * |
| | | FROM t_course_package_payment |
| | | UNION ALL |
| | | SELECT * |
| | | FROM t_course_package_payment1 |
| | | UNION ALL |
| | | SELECT * |
| | | FROM t_course_package_payment2 |
| | | UNION ALL |
| | | SELECT * |
| | | FROM t_course_package_payment3 |
| | | UNION ALL |
| | | SELECT * |
| | | FROM t_course_package_payment4 |
| | | UNION ALL |
| | | SELECT * |
| | | FROM t_course_package_payment5 |
| | | WHERE 1=1 |
| | | <if test=" stuId != null"> |
| | | and studentId = #{stuId} |
| | | </if> |
| | | <if test="appUserId != null"> |
| | | and appUserId = #{appUserId} |
| | | </if> |
| | | <if test="startTime != null and endTime != null"> |
| | | and (insertTime between #{startTime} and #{endTime}) |
| | | </if> |
| | | <if test="coursePackId != null "> |
| | | and coursePackageId = #{coursePackId} |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | <select id="queryCountNumber" resultType="int"> |