update edu_user_answer ua , edu_question q ,edu_paper_question pq
set ua.score = pq.score
where q.id = ua.question_id and q.id = pq.question_id and ua.paper_id = pq.paper_id
and ua.user_paper_id =#{userPaperId}
update edu_user_answer ua
set ua.score = IFNULL((select pq.score from edu_question q ,edu_paper_question pq where q.id = pq.question_id and ua.answer = q.question_answer and ua.paper_id= pq.paper_id and ua.question_id = q.id) , 0)