时间校验

This commit is contained in:
苏尹岚
2019-11-20 09:55:30 +08:00
parent 34047548ed
commit b6dced6a3c
2 changed files with 2 additions and 8 deletions

View File

@@ -617,8 +617,8 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
if err = dao.GetEntity(db, store); err != nil {
return 0, err
}
outStore := &model.Store{}
valid := dao.StrictMakeMapByStructObject2(payload, store, outStore, userName)
var outStore *model.Store
valid := dao.StrictMakeMapByStructObject2(payload, store, &outStore, userName)
if err = checkStoreDeliveryRange(utils.Interface2String(valid["deliveryRange"])); err != nil {
return 0, err
}

View File

@@ -670,12 +670,6 @@ func (v *VendorSync) ChangeStoreSkuSaleStatus(ctx *jxcontext.Context, storeID in
}
vendorIDs := partner.GetPurchasePlatformVendorIDs()
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)
return err
}