diff --git a/business/partner/purchase/jd/financial.go b/business/partner/purchase/jd/financial.go index 080ea5bd6..30abad981 100644 --- a/business/partner/purchase/jd/financial.go +++ b/business/partner/purchase/jd/financial.go @@ -1,6 +1,8 @@ package jd import ( + "math" + "git.rosy.net.cn/baseapi/platformapi/jdapi" "git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/jx-callback/business/model" @@ -97,7 +99,9 @@ func (p *PurchaseHandler) OrderDetail2Financial(a *jdapi.API, orderData map[stri // orderFinancial.JxSubsidyMoney += orderSkuFinancial.JxSubsidyMoneyForSku orderFinancial.SalePriceMoney += orderSkuFinancial.SalePrice * int64(orderSkuFinancial.Count) orderSkuFinancial.SkuID = int(utils.Str2Int64WithDefault(utils.Interface2String(xMap["skuIdIsv"]), 0)) - + if orderSkuFinancial.SkuID > math.MaxInt32 { + orderSkuFinancial.SkuID = 0 + } orderFinancial.Skus = append(orderFinancial.Skus, orderSkuFinancial) } }