diff --git a/src/main/resources/mapper/mini/MiniAdoptionDiaryCommentLikeMapper.xml b/src/main/resources/mapper/mini/MiniAdoptionDiaryCommentLikeMapper.xml index e6d25eb..3482baf 100644 --- a/src/main/resources/mapper/mini/MiniAdoptionDiaryCommentLikeMapper.xml +++ b/src/main/resources/mapper/mini/MiniAdoptionDiaryCommentLikeMapper.xml @@ -10,7 +10,7 @@ @@ -18,9 +18,9 @@ INSERT INTO mini_adoption_diary_comment_like - (uuid, note_comment_id, mini_user_id, create_timestamp, create_time, create_by, is_deleted) + (uuid, diary_comment_id, mini_user_id, create_timestamp, create_time, create_by, is_deleted) VALUES - (#{uuid}, #{noteCommentId}, #{miniUserId}, #{createTimestamp}, #{createTime}, #{createBy}, 0) + (#{uuid}, #{diaryCommentId}, #{miniUserId}, #{createTimestamp}, #{createTime}, #{createBy}, 0) ON DUPLICATE KEY UPDATE is_deleted = 0, update_timestamp = #{createTimestamp}, @@ -35,7 +35,7 @@ update_time = NOW(), update_timestamp = #{currentTime}, update_by = #{userId} - WHERE note_comment_id = #{commentId} + WHERE diary_comment_id = #{commentId} AND mini_user_id = #{userId} AND is_deleted = 0 diff --git a/src/main/resources/mapper/mini/MiniAdoptionDiaryCommentMapper.xml b/src/main/resources/mapper/mini/MiniAdoptionDiaryCommentMapper.xml index 4777aed..622a456 100644 --- a/src/main/resources/mapper/mini/MiniAdoptionDiaryCommentMapper.xml +++ b/src/main/resources/mapper/mini/MiniAdoptionDiaryCommentMapper.xml @@ -85,13 +85,13 @@