Files
jx-callback/business/model/dao/store_sku_test.go
gazebo 904acbf3de updateStoresSkusWithoutSync中
关注商品时,如果有删除的相应门店商品,使用恢复删除(而不是新建)
需要处理,在删除某个门店商品,同步失败的情况下,又把商品重新关注。
所以统一处理成恢复删除的记录,这样避免问题
2019-12-24 11:11:13 +08:00

31 lines
763 B
Go

package dao
import (
"testing"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/globals"
)
func TestGetFullStoreSkus(t *testing.T) {
skuList, err := GetFullStoreSkus(GetDB(), model.VendorIDJD, 100118)
if err != nil {
t.Fatal(err)
}
globals.SugarLogger.Debug(utils.Format4Output(skuList, false))
}
func TestGetStoreSkus(t *testing.T) {
skuList, err := GetStoreSkus(GetDB(), model.VendorIDMTWM, 100134, nil)
if err != nil {
t.Fatal(err)
}
globals.SugarLogger.Debug(utils.Format4Output(skuList, false))
}
func TestGetDeletedStoreSkuBind(t *testing.T) {
storeSkuBind := GetDeletedStoreSkuBind(GetDB(), 100123, 30648)
globals.SugarLogger.Debug(utils.Format4Output(storeSkuBind, false))
}