word_id, course_code, content, phonetic, picture, translate, example1, example2, example3, is_major, phonics, phonics_voice, phonics_part_voice, example_voice
words_homework_id, creator_id, classes_id, homework_description, homework_content, homework_type, study_type, homework_words, homework_words_brief, words_count, exercise_count, homework_start_time, homework_end_time, delay_time, homework_platform_type, words_homework_status, creat_time, update_time, is_aborted,assign_time,number
insert into ct_wordshomework_vocabulary
creator_id,
classes_id,
homework_description,
homework_content,
homework_type,
study_type,
homework_words,
homework_words_brief,
words_count,
exercise_count,
homework_start_time,
homework_end_time,
delay_time,
homework_platform_type,
words_homework_status,
creat_time,
update_time,
is_aborted,
assign_time,
number
#{creatorId,jdbcType=BIGINT},
#{classesId,jdbcType=BIGINT},
#{homeworkDescription},
#{homeworkContent},
#{homeworkType},
#{studyType},
#{homeworkWords},
#{homeworkWordsBrief},
#{wordsCount},
#{exerciseCount},
#{homeworkStartTime},
#{homeworkEndTime},
#{delayTime},
#{homeworkPlatformType},
#{wordsHomeworkStatus},
#{creatTime},
#{updateTime},
#{isAborted},
#{assignTime},
#{number}
INSERT INTO wordachive(uid,pointCaseType,wordsId,score,accuracy,fluent,integrity,content,created,areaId)
VALUES (#{uid},#{pointCaseType},#{wordsId},#{score},#{accuracy},#{fluent},#{integrity},#{content},#{created},#{areaId})
insert into finishassignstat
(uid,assignmentId,content,lessonCount ,completeCount,created,howmuch ,maxScore,avgScore,areaId,uuid,avgAccuracy,avgFluent,avgIntegrity) values
(#{uid},#{assignmentId},#{content},#{lessonCount},#{completeCount},#{created},#{howMuch},#{maxScore},#{avgScore},#{areaId},#{uuid},#{avgAccuracy},#{avgFluent},#{avgIntegrity})
ON DUPLICATE KEY UPDATE
created=VALUES(created),
completeCount=VALUES(completeCount),
howMuch=VALUES(howMuch),
maxScore=VALUES(maxScore),
avgScore=VALUES(avgScore)
update finishassignstat set content=#{content},lessonCount=#{lessonCount},
completeCount=#{completeCount},created=#{created},
howMuch=#{howMuch},maxScore=#{maxScore},avgScore=#{avgScore},
avgAccuracy=#{avgAccuracy},avgFluent=#{avgFluent}, avgIntegrity=#{avgIntegrity}
where uid=#{uid} and assignmentId=#{assignmentId} and areaId=#{areaId}
UPDATE WordAchive SET uid = #{uid}, pointCaseType = #{pointCaseType}, wordsId = #{wordsId},
score = #{score}, accuracy = #{accuracy}, fluent = #{fluent}, integrity = #{integrity},
content = #{content}, created = #{created} , areaId = #{areaId}
where wordAchiveId=#{wordAchiveId}