修复GetStoreSkuPriceAndWeight中的bug

This commit is contained in:
gazebo
2020-01-16 15:15:46 +08:00
parent 5cc44aeb95
commit 8f1cc2316c
3 changed files with 11 additions and 2 deletions

View File

@@ -28,3 +28,11 @@ func TestGetDeletedStoreSkuBind(t *testing.T) {
storeSkuBind := GetDeletedStoreSkuBind(GetDB(), 100123, 30648)
globals.SugarLogger.Debug(utils.Format4Output(storeSkuBind, false))
}
func TestGetStoreSkuPriceAndWeight(t *testing.T) {
storeSkuBind, err := GetStoreSkuPriceAndWeight(GetDB(), "11863739", model.VendorIDJD, []string{"2023508979"})
if err != nil {
t.Fatal(err)
}
globals.SugarLogger.Debug(utils.Format4Output(storeSkuBind, false))
}