按活动要求强制刷新商品平台价

This commit is contained in:
gazebo
2019-11-28 08:59:56 +08:00
parent b91163cb18
commit 412fe44d32
6 changed files with 208 additions and 7 deletions

View File

@@ -185,7 +185,22 @@ func TestAddActStoreBind(t *testing.T) {
}
func TestSyncAct(t *testing.T) {
_, err := SyncAct(jxcontext.AdminCtx, nil, 1, nil, nil, nil, false)
_, err := SyncAct(jxcontext.AdminCtx, nil, 1, nil, false)
if err != nil {
t.Fatal(err)
}
}
func TestForceUpdateVendorPrice(t *testing.T) {
_, err := ForceUpdateVendorPrice(jxcontext.AdminCtx, model.VendorIDJD, model.ActSkuDirectDown, []*ActStoreSkuParam{
&ActStoreSkuParam{
ActStoreSku: model.ActStoreSku{
StoreID: 100118,
SkuID: 22509,
},
ActualActPrice: 9900,
},
}, false)
if err != nil {
t.Fatal(err)
}