|
|
@@ -102,7 +102,6 @@ public interface BookmarkMapper {
|
|
|
"#{categoryId}",
|
|
|
"</foreach>",
|
|
|
"</if>",
|
|
|
-
|
|
|
"<if test=\"accountId != null and accountId != ''\">" +
|
|
|
" and bi.account_id = #{accountId}" +
|
|
|
"</if>" +
|
|
|
@@ -119,14 +118,14 @@ public interface BookmarkMapper {
|
|
|
"</script>"})
|
|
|
List<BookmarkInfo> findBookmarkList(Map<String, Object> params);
|
|
|
|
|
|
- @Insert("INSERT INTO bookmark_info(title, url, tags, remark, account_id, category_id) " +
|
|
|
- "VALUES (#{title}, #{url}, #{tags}, #{remark}, #{accountId}, #{categoryId})")
|
|
|
+ @Insert("INSERT INTO bookmark_info(title, url, source_url, tags, remark, account_id, category_id) " +
|
|
|
+ "VALUES (#{title}, #{url}, #{sourceUrl}, #{tags}, #{remark}, #{accountId}, #{categoryId})")
|
|
|
void insertBookmark(BookmarkInfo bookmarkInfo);
|
|
|
|
|
|
@Select("select * from bookmark_info where id = #{id}")
|
|
|
BookmarkInfo findBookmarkById(Long id);
|
|
|
|
|
|
- @Update("update bookmark_info set title=#{title},url=#{url},tags=#{tags},remark=#{remark},account_id=#{accountId}," +
|
|
|
+ @Update("update bookmark_info set title=#{title},url=#{url},source_url=#{sourceUrl},tags=#{tags},remark=#{remark},account_id=#{accountId}," +
|
|
|
"category_id=#{categoryId} where id = #{id}")
|
|
|
void updateBookmark(BookmarkInfo bookmarkInfo);
|
|
|
|