<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<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>
|
</mapper>
|