同步错误返回冲突解决
This commit is contained in:
@@ -563,16 +563,15 @@ func CheckSkuDiffBetweenJxAndVendor(ctx *jxcontext.Context, vendorIDList []int,
|
|||||||
var filterJxSkuInfoMapMulti map[int]*dao.StoreSkuNameExt
|
var filterJxSkuInfoMapMulti map[int]*dao.StoreSkuNameExt
|
||||||
for _, vendorListValue := range jxStoreInfoListValue.StoreMaps {
|
for _, vendorListValue := range jxStoreInfoListValue.StoreMaps {
|
||||||
vendorID := vendorListValue.VendorID
|
vendorID := vendorListValue.VendorID
|
||||||
var flag = false
|
|
||||||
if partner.IsMultiStore(vendorID) {
|
if partner.IsMultiStore(vendorID) {
|
||||||
if multiFlag == false {
|
if multiFlag == false {
|
||||||
jxSkuInfoDataMulti, _ := GetStoreSkus(ctx, storeID, filterJxDepotUnSaleSkuIds, true, "", true, false, map[string]interface{}{}, 0, -1)
|
jxSkuInfoDataMulti, _ = GetStoreSkus(ctx, storeID, filterJxDepotUnSaleSkuIds, true, "", true, false, map[string]interface{}{}, 0, -1)
|
||||||
filterJxSkuInfoMapMulti = GetFilterJxSkuInfoMap(jxSkuInfoDataMulti.SkuNames) //map[京西商品ID:StoreSkuNameExt]
|
filterJxSkuInfoMapMulti = GetFilterJxSkuInfoMap(jxSkuInfoDataMulti.SkuNames) //map[京西商品ID:StoreSkuNameExt]
|
||||||
multiFlag = true
|
multiFlag = true
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if singleFlag == false {
|
if singleFlag == false {
|
||||||
jxSkuInfoDataSingle, _ := GetStoreSkus(ctx, storeID, []int{}, true, "", true, false, map[string]interface{}{}, 0, -1)
|
jxSkuInfoDataSingle, _ = GetStoreSkus(ctx, storeID, []int{}, true, "", true, false, map[string]interface{}{}, 0, -1)
|
||||||
filterJxSkuInfoMapSingle = GetFilterJxSkuInfoMap(jxSkuInfoDataSingle.SkuNames) //map[京西商品ID:StoreSkuNameExt]
|
filterJxSkuInfoMapSingle = GetFilterJxSkuInfoMap(jxSkuInfoDataSingle.SkuNames) //map[京西商品ID:StoreSkuNameExt]
|
||||||
singleFlag = true
|
singleFlag = true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -803,15 +803,3 @@ func (d *SyncErrResultLock) AppendData(syncErrResult SyncErrResult) {
|
|||||||
defer d.locker.Unlock()
|
defer d.locker.Unlock()
|
||||||
d.syncErrResult = append(d.syncErrResult, syncErrResult)
|
d.syncErrResult = append(d.syncErrResult, syncErrResult)
|
||||||
}
|
}
|
||||||
|
|
||||||
func OnCreateThing(db *dao.DaoDB, thingID int64, thingType int8) (err error) {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
func OnUpdateThing(db *dao.DaoDB, thingID int64, thingType int8) (err error) {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
func OnDeleteThing(db *dao.DaoDB, thingID int64, thingType int8) (err error) {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user