mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-22 20:23:35 +08:00
实现项目复制功能
This commit is contained in:
@@ -96,6 +96,7 @@ func (m *Document) InsertOrUpdate(cols ...string) error {
|
||||
|
||||
m.Identify = fmt.Sprintf("%s-%s",identify,strconv.FormatInt(time.Now().UnixNano(), 32))
|
||||
}
|
||||
|
||||
if m.OrderSort == 0{
|
||||
sort,_ := o.QueryTable(m.TableNameWithPrefix()).Filter("book_id",m.BookId).Filter("parent_id",m.ParentId).Count()
|
||||
m.OrderSort = int(sort) + 1
|
||||
|
Reference in New Issue
Block a user