This commit is contained in:
邹宗楠
2022-05-31 09:29:26 +08:00
parent a8af8699f6
commit f5566a86ab
3 changed files with 2 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ import (
// 更新门店负责人信息 // 更新门店负责人信息
func UpdateStoreOperatorConfig() { func UpdateStoreOperatorConfig() {
globals.SugarLogger.Debug("======测试输出")
db := dao.GetDB() db := dao.GetDB()
store, err := dao.GetStoreList(db, nil, nil, nil, nil, nil, "") store, err := dao.GetStoreList(db, nil, nil, nil, nil, nil, "")
if err != nil { if err != nil {

View File

@@ -182,7 +182,7 @@ func Init() {
ScheduleTimerFunc("RefreshStoreOperator", func() { ScheduleTimerFunc("RefreshStoreOperator", func() {
cms.UpdateStoreOperatorConfig() cms.UpdateStoreOperatorConfig()
}, []string{ }, []string{
"03:30:00", "10:00:00",
}) })
ScheduleTimerFuncByInterval(func() { ScheduleTimerFuncByInterval(func() {

View File

@@ -468,7 +468,6 @@ func GetStoreCategories(db *DaoDB, vendorID, storeID int, skuIDs []int, level in
sql += " AND t4.level = ?" sql += " AND t4.level = ?"
sqlParams = append(sqlParams, level) sqlParams = append(sqlParams, level)
} }
globals.SugarLogger.Debug("sql ===========",fmt.Sprintf(sql, fieldPrefixParams...),sqlParams)
if err = GetRows(db, &cats, fmt.Sprintf(sql, fieldPrefixParams...), sqlParams...); err != nil { if err = GetRows(db, &cats, fmt.Sprintf(sql, fieldPrefixParams...), sqlParams...); err != nil {
return nil, err return nil, err
} }