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