+ GetStoresOrderSaleInfoNew

This commit is contained in:
gazebo
2019-08-20 10:59:47 +08:00
parent 73b62ca1a9
commit 7a91faec5b
3 changed files with 168 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ package dao
import (
"testing"
"time"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/globals"
@@ -23,3 +24,18 @@ func TestGetAfsOrderSkuInfo(t *testing.T) {
}
globals.SugarLogger.Debug(utils.Format4Output(afsSkus, false))
}
func TestGetStoreOrderSkuList(t *testing.T) {
skuList, err := GetStoreOrderSkuList(GetDB(), []int{100118}, time.Now().Add(-30*time.Hour), time.Now(), nil)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(skuList, false))
afsSkuList, err := GetStoreOrderSkuList(GetDB(), []int{100118}, time.Now().Add(-30*time.Hour), time.Now(), nil)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(afsSkuList, false))
}