From 7957e39f4ee19445f46d6f50a68aaa5b6da70c09 Mon Sep 17 00:00:00 2001 From: moec42frf <3378620026@qq.com> Date: Sun, 30 Apr 2023 10:22:19 +0800 Subject: [PATCH] ADD file via upload --- .../classes/org/sang/mapper/TagsMapper.xml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 blogserver/target/classes/org/sang/mapper/TagsMapper.xml diff --git a/blogserver/target/classes/org/sang/mapper/TagsMapper.xml b/blogserver/target/classes/org/sang/mapper/TagsMapper.xml new file mode 100644 index 0000000..5e47bcd --- /dev/null +++ b/blogserver/target/classes/org/sang/mapper/TagsMapper.xml @@ -0,0 +1,27 @@ + + + + + DELETE FROM article_tags WHERE aid=#{aid} + + + INSERT IGNORE INTO tags(tagName) VALUES + + (#{tag}) + + + + + INSERT INTO article_tags(aid,tid) VALUES + + (#{aid},#{tagId}) + + + \ No newline at end of file