🐝 Fix: [后台]:修复过长name无法导入问题
This commit is contained in:
parent
2fe026b69a
commit
0390308d44
@ -1,6 +1,7 @@
|
|||||||
package com.fanxb.bookmark.business.bookmark.dao;
|
package com.fanxb.bookmark.business.bookmark.dao;
|
||||||
|
|
||||||
import com.fanxb.bookmark.common.entity.Bookmark;
|
import com.fanxb.bookmark.common.entity.Bookmark;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
@ -12,6 +13,7 @@ import java.util.List;
|
|||||||
* Date: 2019/11/12
|
* Date: 2019/11/12
|
||||||
* Time: 0:24
|
* Time: 0:24
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface BookmarkBackupDao {
|
public interface BookmarkBackupDao {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,8 +23,6 @@ import java.util.List;
|
|||||||
@Service
|
@Service
|
||||||
public class BookmarkBackupService {
|
public class BookmarkBackupService {
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private BookmarkDao bookmarkDao;
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private BookmarkBackupDao bookmarkBackupDao;
|
private BookmarkBackupDao bookmarkBackupDao;
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ public class BookmarkService {
|
|||||||
Document doc = Jsoup.parse(stream, "utf-8", "");
|
Document doc = Jsoup.parse(stream, "utf-8", "");
|
||||||
Elements elements = doc.select("html>body>dl>dt");
|
Elements elements = doc.select("html>body>dl>dt");
|
||||||
//获取当前层sort最大值
|
//获取当前层sort最大值
|
||||||
Integer sortBase = bookmarkDao.selectMaxSort(1, path);
|
Integer sortBase = bookmarkDao.selectMaxSort(userId, path);
|
||||||
if (sortBase == null) {
|
if (sortBase == null) {
|
||||||
sortBase = 0;
|
sortBase = 0;
|
||||||
}
|
}
|
||||||
|
@ -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`;
|
Loading…
x
Reference in New Issue
Block a user