时间校验
This commit is contained in:
@@ -617,8 +617,8 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
|
|||||||
if err = dao.GetEntity(db, store); err != nil {
|
if err = dao.GetEntity(db, store); err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
outStore := &model.Store{}
|
var outStore *model.Store
|
||||||
valid := dao.StrictMakeMapByStructObject2(payload, store, outStore, userName)
|
valid := dao.StrictMakeMapByStructObject2(payload, store, &outStore, userName)
|
||||||
if err = checkStoreDeliveryRange(utils.Interface2String(valid["deliveryRange"])); err != nil {
|
if err = checkStoreDeliveryRange(utils.Interface2String(valid["deliveryRange"])); err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -670,12 +670,6 @@ func (v *VendorSync) ChangeStoreSkuSaleStatus(ctx *jxcontext.Context, storeID in
|
|||||||
}
|
}
|
||||||
vendorIDs := partner.GetPurchasePlatformVendorIDs()
|
vendorIDs := partner.GetPurchasePlatformVendorIDs()
|
||||||
dao.UpdateStoreSkuBindSyncStatus(db, vendorIDs, storeID)
|
dao.UpdateStoreSkuBindSyncStatus(db, vendorIDs, storeID)
|
||||||
if isAsync == false {
|
|
||||||
isAsync = true
|
|
||||||
}
|
|
||||||
if isContinueWhenError == false {
|
|
||||||
isContinueWhenError = true
|
|
||||||
}
|
|
||||||
v.SyncStoresSkus(ctx, db, vendorIDs, storeIDs, skuIDs, false, isAsync, isContinueWhenError)
|
v.SyncStoresSkus(ctx, db, vendorIDs, storeIDs, skuIDs, false, isAsync, isContinueWhenError)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user