INSERT INTO
ai_lms.wordbook (wd_book_id,
wd_book_type_id,
text_id,
user_id,
book_id)
VALUES (#{wdBookId},
#{wdBookTypeId},
#{textId},
#{userId},
#{bookId})
UPDATE ai_lms.wordbook
SET wd_book_type_id = #{wdBookTypeId},
text_id = #{textId},
user_id = #{userId},
book_id = #{bookId}
WHERE wd_book_id = #{wdBookId}
DELETE FROM ai_lms.wordbook
WHERE wd_book_id = #{wdBookId}