| | |
| | | |
| | | |
| | | <select id="selectCountByDate" resultType="com.ycl.jxkg.domain.other.KeyValue"> |
| | | SELECT answer_time as name, sum(question_count) as value |
| | | SELECT submit_time as name, sum(question_count) as value |
| | | from |
| | | ( |
| | | SELECT question_count ,DATE_FORMAT(answer_time, '%Y-%m-%d') as answer_time from t_exam_paper_score |
| | | WHERE answer_time between #{startTime} and #{endTime} |
| | | SELECT question_count ,DATE_FORMAT(submit_time, '%Y-%m-%d') as submit_time from t_exam_paper_score |
| | | WHERE submit_time between #{startTime} and #{endTime} |
| | | ) a |
| | | GROUP BY answer_time |
| | | GROUP BY submit_time |
| | | </select> |
| | | |
| | | <update id="updateScore" parameterType="java.util.List"> |