更新代码
This commit is contained in:
@@ -31,7 +31,6 @@ func EnsureCrmProjectDocCategory(tid int, projectID uint64, projectName string,
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
models.EnsureOaDocumentTables()
|
||||
models.EnsureOaDocDefaultCategories(tid)
|
||||
|
||||
// 1. 已绑定且分类仍有效:直接返回
|
||||
@@ -165,7 +164,6 @@ type ProjectDocFolder struct {
|
||||
// CrmProjectDocFolderTree 构建项目文件夹树(根为项目文件夹,含全部子孙文件夹)。
|
||||
// 「项目文档」下的同名文件夹即项目根,用户在项目内新建的文件夹为其子分类。
|
||||
func CrmProjectDocFolderTree(a OaDocActor, rootID uint64) ([]*ProjectDocFolder, error) {
|
||||
models.EnsureOaDocumentTables()
|
||||
empty := []*ProjectDocFolder{}
|
||||
if rootID == 0 {
|
||||
return empty, nil
|
||||
|
||||
Reference in New Issue
Block a user