1
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user