- ignore price == 0 data in Change2JDSPU4Store
This commit is contained in:
@@ -355,7 +355,7 @@ func Change2JDSPU4Store(ctx *jxcontext.Context, storeIDs []int, isAsync, isConti
|
|||||||
JOIN store t3 ON t3.id = t1.store_id
|
JOIN store t3 ON t3.id = t1.store_id
|
||||||
JOIN sku_name t4 ON t4.id = t2.name_id
|
JOIN sku_name t4 ON t4.id = t2.name_id
|
||||||
LEFT JOIN sku_name_place_bind t5 ON t5.place_code = t3.city_code AND t5.name_id = t4.id
|
LEFT JOIN sku_name_place_bind t5 ON t5.place_code = t3.city_code AND t5.name_id = t4.id
|
||||||
WHERE t1.deleted_at = ? AND (t4.is_global = 1 OR t5.id IS NOT NULL)
|
WHERE t1.deleted_at = ? AND (t4.is_global = 1 OR t5.id IS NOT NULL) AND t1.price > 0
|
||||||
`
|
`
|
||||||
sqlParams = []interface{}{
|
sqlParams = []interface{}{
|
||||||
ctx.GetUserName(),
|
ctx.GetUserName(),
|
||||||
|
|||||||
@@ -187,6 +187,12 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
|
|||||||
err = api.EbaiAPI.ShopClose("", utils.Str2Int64(store.VendorStoreID))
|
err = api.EbaiAPI.ShopClose("", utils.Str2Int64(store.VendorStoreID))
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
// todo
|
||||||
|
if intErr, ok := err.(*utils.ErrorWithCode); ok {
|
||||||
|
if intErr.IntCode() == 201101 {
|
||||||
|
err = nil
|
||||||
|
}
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user