| | |
| | | LEFT JOIN th_student s ON s.idcard = e.idcard |
| | | LEFT JOIN th_batch b ON b.uuid = e.batch_uuid |
| | | WHERE |
| | | e.del_flag = 0 |
| | | e.del_flag = 0 and s.del_flag = 0 and b.del_flag = 0 |
| | | <if test="query.idcard != null and query.idcard != ''"> |
| | | and e.idcard = #{query.idcard} |
| | | </if> |
| | |
| | | <select id="getStatistic" resultType="com.gkhy.exam.institutionalaccess.model.vo.ThTrainVO"> |
| | | SELECT |
| | | e.institution_id, |
| | | count( e.institution_id ) passCount |
| | | count(DISTINCT e.idcard) passCount |
| | | FROM |
| | | th_exam_record e |
| | | LEFT JOIN th_batch b ON e.batch_uuid = b.uuid |