| | |
| | | </select> |
| | | |
| | | <select id="getRandomPaperExcelById" resultType="com.mindskip.xzs.domain.vo.PaperExcelVO" parameterType="java.lang.Integer"> |
| | | select u.real_name as name,a.create_user as userId,a.user_score as userScore,a.paper_score as paperScore |
| | | select u.real_name as name,a.create_user as userId,MAX(a.user_score) as userScore,a.paper_score as paperScore |
| | | from t_exam_paper_answer a |
| | | inner join t_user u on u.id = a.create_user |
| | | inner join t_exam_templates_user_count uc ON a.exam_paper_id = uc.exam_paper_id AND a.create_user = uc.user_id AND uc.exam_templates_id = #{id} |
| | | where a.invalid = 0 |
| | | GROUP BY u.real_name, a.create_user, a.paper_score |
| | | </select> |
| | | |
| | | |