This commit is contained in:
苏尹岚
2021-03-12 16:17:40 +08:00
parent a5e37278aa
commit 47ce54c9af
2 changed files with 3 additions and 2 deletions

View File

@@ -103,8 +103,6 @@ func SyncCategories(ctx *jxcontext.Context, parentTask tasksch.ITask, vendorIDs
needSyncParentIDs = append(needSyncParentIDs, cat.ParentID)
}
}
fmt.Println("22222222222222222222222", utils.Format4Output(catList, false))
fmt.Println("22222222222222222222222", utils.Format4Output(needSyncParentIDs, false))
if len(needSyncParentIDs) > 0 {
task := tasksch.NewSeqTask(fmt.Sprintf("同步分类1:%v", catIDs), ctx,
func(task *tasksch.SeqTask, step int, params ...interface{}) (result interface{}, err error) {

View File

@@ -1,6 +1,7 @@
package dao
import (
"fmt"
"time"
"git.rosy.net.cn/baseapi/platformapi/aliupcapi"
@@ -260,6 +261,8 @@ func GetSkuCategoryWithVendor(db *DaoDB, vendorIDs []int, appOrgCodes []string,
sqlParams = append(sqlParams, parentCatID)
}
sql += " ORDER BY t1.seq"
fmt.Println(sql)
fmt.Println(sqlParams)
err = GetRows(db, &catList, sql, sqlParams...)
return catList, err
}