- 每晚8点再同步一次平台门店信息
This commit is contained in:
@@ -103,6 +103,7 @@ var (
|
|||||||
"10:00:00",
|
"10:00:00",
|
||||||
"11:00:00",
|
"11:00:00",
|
||||||
"15:00:00",
|
"15:00:00",
|
||||||
|
"20:00:00",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
|
|
||||||
func TestQueryRecipes(t *testing.T) {
|
func TestQueryRecipes(t *testing.T) {
|
||||||
db := GetDB()
|
db := GetDB()
|
||||||
recipeList, err := QueryFoodRecipes(db, "", -1, "", "")
|
recipeList, _, err := QueryFoodRecipes(db, "", 0, "", "", 0, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,3 +38,11 @@ func TestGetStoreList4Role(t *testing.T) {
|
|||||||
t.Fatal(err)
|
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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ func updateFoodRecipeItemAndStep(ctx *jxcontext.Context, db *dao.DaoDB, recipeID
|
|||||||
RecipeID: recipeID,
|
RecipeID: recipeID,
|
||||||
Index: int8(k + 1),
|
Index: int8(k + 1),
|
||||||
Name: v.Name,
|
Name: v.Name,
|
||||||
|
Img: v.Img,
|
||||||
}
|
}
|
||||||
dao.WrapAddIDCULDEntity(step, ctx.GetUserName())
|
dao.WrapAddIDCULDEntity(step, ctx.GetUserName())
|
||||||
if err = dao.CreateEntity(db, step); err != nil {
|
if err = dao.CreateEntity(db, step); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user