|
@@ -33,7 +33,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
SELECT
|
|
SELECT
|
|
|
ups.*,
|
|
ups.*,
|
|
|
(select realname from `user` u where up.user_id = u.user_id) as realname,
|
|
(select realname from `user` u where up.user_id = u.user_id) as realname,
|
|
|
- (SELECT name FROM course_section cs where up.section_id= cs.section_id) as type_name
|
|
|
|
|
|
|
+ <if test="examId != null ">
|
|
|
|
|
+ (SELECT name FROM course_section cs where up.section_id= cs.section_id)
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="sectionId != null ">
|
|
|
|
|
+ (SELECT name FROM course_section cs where up.section_id= cs.section_id)
|
|
|
|
|
+ </if>
|
|
|
|
|
+ as type_name
|
|
|
FROM
|
|
FROM
|
|
|
user_period_status ups
|
|
user_period_status ups
|
|
|
LEFT JOIN user_period up ON up.id = ups.period_id
|
|
LEFT JOIN user_period up ON up.id = ups.period_id
|