|  | @@ -205,7 +205,7 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	<sql id="queryCondition">
 | 
	
		
			
				|  |  |  		<where>
 | 
	
		
			
				|  |  | -			er.status_ NOT IN ('CANCEL')
 | 
	
		
			
				|  |  | +			er.status_ NOT IN ('CANCEL', 'PAY_WAIT')
 | 
	
		
			
				|  |  |  			<if test="organIds!=null">
 | 
	
		
			
				|  |  |  				AND er.organ_id_ IN
 | 
	
		
			
				|  |  |  				<foreach collection="organIds" item="organId" separator="," open="(" close=")">
 | 
	
	
		
			
				|  | @@ -462,6 +462,8 @@
 | 
	
		
			
				|  |  |  		<result property="examEndTime" column="expect_exam_end_time_"/>
 | 
	
		
			
				|  |  |  		<result property="enrollEndTime" column="enroll_end_time_"/>
 | 
	
		
			
				|  |  |  		<result property="enrollStartTime" column="enroll_start_time_"/>
 | 
	
		
			
				|  |  | +		<result property="performSongIdList" column="perform_song_id_list_"/>
 | 
	
		
			
				|  |  | +		<result property="practiceSongIdList" column="practice_song_id_list_"/>
 | 
	
		
			
				|  |  |  	</resultMap>
 | 
	
		
			
				|  |  |      <select id="countStudentList" resultType="java.lang.Integer">
 | 
	
		
			
				|  |  |  		SELECT COUNT(er.id_) FROM exam_registration er
 | 
	
	
		
			
				|  | @@ -477,18 +479,20 @@
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  |  			<if test="paymentStatus != null and paymentStatus == 1">
 | 
	
		
			
				|  |  |  				<if test="paymentStatus == 1">
 | 
	
		
			
				|  |  | -					AND er.status_ = 'AUDIT_PASS'
 | 
	
		
			
				|  |  | +					AND er.status_ IN ('AUDIT_PASS','AUDIT_WAIT','AUDIT_REJECT')
 | 
	
		
			
				|  |  |  				</if>
 | 
	
		
			
				|  |  |  				<if test="paymentStatus == 0">
 | 
	
		
			
				|  |  | -					AND er.status_ != 'AUDIT_PASS'
 | 
	
		
			
				|  |  | +					AND er.status_ IN ('CANCEL','PAY_WAIT')
 | 
	
		
			
				|  |  |  				</if>
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  |  		</where>
 | 
	
		
			
				|  |  |  	</sql>
 | 
	
		
			
				|  |  |  	<select id="queryStudentList" resultMap="ExamRegistrationDtoMap">
 | 
	
		
			
				|  |  | -		SELECT er.*,eb.enroll_end_time_,eb.enroll_start_time_,eb.expect_exam_end_time_,eb.expect_exam_start_time_,eb.name_ examBaseName
 | 
	
		
			
				|  |  | +		SELECT er.*,eb.enroll_end_time_,eb.enroll_start_time_,eb.expect_exam_end_time_,
 | 
	
		
			
				|  |  | +		eb.expect_exam_start_time_,eb.name_ examBaseName,ess.practice_song_id_list_,ess.perform_song_id_list_
 | 
	
		
			
				|  |  |  		FROM exam_registration er
 | 
	
		
			
				|  |  |  		LEFT JOIN examination_basic eb ON er.examination_basic_id_ = eb.id_
 | 
	
		
			
				|  |  | +		LEFT JOIN exam_subject_song ess ON er.examination_basic_id_ = ess.examination_basic_id_
 | 
	
		
			
				|  |  |  		<include refid="queryStudentListSql"/>
 | 
	
		
			
				|  |  |  		ORDER BY er.update_time_ DESC
 | 
	
		
			
				|  |  |  		<include refid="global.limit"/>
 | 
	
	
		
			
				|  | @@ -592,14 +596,12 @@
 | 
	
		
			
				|  |  |  		<include refid="global.limit"/>
 | 
	
		
			
				|  |  |  	</select>
 | 
	
		
			
				|  |  |  	<resultMap id="StuRecordDetailDtoMap" type="com.keao.edu.user.dto.StuRecordDetailDto">
 | 
	
		
			
				|  |  | -		<result property="actualExamEndTime" column="expect_exam_end_time_"/>
 | 
	
		
			
				|  |  |  		<result property="songJson" column="song_json_"/>
 | 
	
		
			
				|  |  |  		<result property="recordStartTime" column="record_start_time_"/>
 | 
	
		
			
				|  |  |  	</resultMap>
 | 
	
		
			
				|  |  |      <select id="getStuRecordDetail" resultMap="StuRecordDetailDtoMap">
 | 
	
		
			
				|  |  | -		SELECT eb.expect_exam_end_time_,er.song_json_,ser.record_start_time_
 | 
	
		
			
				|  |  | +		SELECT er.song_json_,ser.record_start_time_
 | 
	
		
			
				|  |  |  		FROM exam_registration er
 | 
	
		
			
				|  |  | -		LEFT JOIN examination_basic eb ON er.examination_basic_id_ = eb.id_
 | 
	
		
			
				|  |  |  		LEFT JOIN student_exam_result ser ON ser.exam_registration_id_ = er.id_
 | 
	
		
			
				|  |  |  		WHERE er.id_ = #{examRegistrationId} LIMIT 1
 | 
	
		
			
				|  |  |  	</select>
 |