1
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
|
||||
// 更新门店负责人信息
|
||||
func UpdateStoreOperatorConfig() {
|
||||
globals.SugarLogger.Debug("======测试输出")
|
||||
db := dao.GetDB()
|
||||
store, err := dao.GetStoreList(db, nil, nil, nil, nil, nil, "")
|
||||
if err != nil {
|
||||
|
||||
@@ -182,7 +182,7 @@ func Init() {
|
||||
ScheduleTimerFunc("RefreshStoreOperator", func() {
|
||||
cms.UpdateStoreOperatorConfig()
|
||||
}, []string{
|
||||
"03:30:00",
|
||||
"10:00:00",
|
||||
})
|
||||
|
||||
ScheduleTimerFuncByInterval(func() {
|
||||
|
||||
@@ -468,7 +468,6 @@ func GetStoreCategories(db *DaoDB, vendorID, storeID int, skuIDs []int, level in
|
||||
sql += " AND t4.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 {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user