🐝 Fix: [后台]:修复过长name无法导入问题

This commit is contained in:
fanxb 2019-11-13 00:35:30 +08:00
parent 2fe026b69a
commit 0390308d44
4 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,7 @@
package com.fanxb.bookmark.business.bookmark.dao;
import com.fanxb.bookmark.common.entity.Bookmark;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
@ -12,6 +13,7 @@ import java.util.List;
* Date: 2019/11/12
* Time: 0:24
*/
@Mapper
public interface BookmarkBackupDao {
/**

View File

@ -23,8 +23,6 @@ import java.util.List;
@Service
public class BookmarkBackupService {
@Autowired
private BookmarkDao bookmarkDao;
@Autowired
private BookmarkBackupDao bookmarkBackupDao;

View File

@ -64,7 +64,7 @@ public class BookmarkService {
Document doc = Jsoup.parse(stream, "utf-8", "");
Elements elements = doc.select("html>body>dl>dt");
//获取当前层sort最大值
Integer sortBase = bookmarkDao.selectMaxSort(1, path);
Integer sortBase = bookmarkDao.selectMaxSort(userId, path);
if (sortBase == null) {
sortBase = 0;
}

View File

@ -0,0 +1,3 @@
ALTER TABLE `bookmark`.`bookmark`
MODIFY COLUMN `name` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL AFTER `type`,
DROP INDEX `userId_path_name_unique_index`;