From 9cda7d3986f3944ad474f79e65aa0325ddf14c89 Mon Sep 17 00:00:00 2001 From: glx <783262171@qq.com> Date: Mon, 25 May 2026 16:59:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=86=E5=85=BB=E6=97=A5?= =?UTF-8?q?=E8=AE=B0=E9=83=A8=E5=88=86sql=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/mini/MiniAdoptionDiaryCommentLikeMapper.xml | 8 ++++---- .../mapper/mini/MiniAdoptionDiaryCommentMapper.xml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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 @@