| | |
| | | where c.exam_templates_id = #{id} |
| | | </select> |
| | | |
| | | <select id="getByExamTemplatesUser" resultType="com.mindskip.xzs.domain.vo.UserCountExcelVO" parameterType="java.lang.Integer"> |
| | | SELECT t.`name`as name,d.`name` as departmentName,u.real_name as userName,SUBSTRING_INDEX(a.user_score/10,".",1) as userScore,SUBSTRING_INDEX(a.paper_score/10,".",1) as paperScore,a.do_time as doTime |
| | | from t_exam_templates_user c |
| | | LEFT JOIN t_exam_templates t on c.templates_id = t.id |
| | | left join t_exam_templates_user_count o on c.templates_id = o.exam_templates_id |
| | | LEFT JOIN t_exam_paper_answer a on (o.exam_paper_id = a.exam_paper_id and o.user_id = a.create_user) |
| | | LEFT JOIN t_user u on a.create_user = u.id |
| | | LEFT JOIN t_department d on d.id = u.user_level |
| | | where c.templates_id = #{id} |
| | | </select> |
| | | |
| | | </mapper> |