- 每晚8点再同步一次平台门店信息

This commit is contained in:
gazebo
2019-09-20 10:30:45 +08:00
parent aa3bfcd4c2
commit 2409b4f323
4 changed files with 11 additions and 1 deletions

View File

@@ -103,6 +103,7 @@ var (
"10:00:00",
"11:00:00",
"15:00:00",
"20:00:00",
}
)

View File

@@ -6,7 +6,7 @@ import (
func TestQueryRecipes(t *testing.T) {
db := GetDB()
recipeList, err := QueryFoodRecipes(db, "", -1, "", "")
recipeList, _, err := QueryFoodRecipes(db, "", 0, "", "", 0, 0)
if err != nil {
t.Fatal(err)
}

View File

@@ -38,3 +38,11 @@ func TestGetStoreList4Role(t *testing.T) {
t.Fatal(err)
}
}
func TestGetStoresMapList(t *testing.T) {
storeList, err := GetStoresMapList(GetDB(), nil, nil, model.StoreStatusClosed, model.StoreIsSyncYes, "")
t.Log(utils.Format4Output(storeList, false))
if err != nil {
t.Fatal(err)
}
}

View File

@@ -74,6 +74,7 @@ func updateFoodRecipeItemAndStep(ctx *jxcontext.Context, db *dao.DaoDB, recipeID
RecipeID: recipeID,
Index: int8(k + 1),
Name: v.Name,
Img: v.Img,
}
dao.WrapAddIDCULDEntity(step, ctx.GetUserName())
if err = dao.CreateEntity(db, step); err != nil {