diff --git a/business/partner/purchase/ebai/store_sku2.go b/business/partner/purchase/ebai/store_sku2.go index 41762f0f8..560f2a419 100644 --- a/business/partner/purchase/ebai/store_sku2.go +++ b/business/partner/purchase/ebai/store_sku2.go @@ -469,6 +469,8 @@ func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isE if storeSku.Stock == 0 && beego.BConfig.RunMode != model.ServerTypePet { params["left_num"] = model.MaxStoreSkuStockQty + } else if storeSku.Stock > 99999 { // 最大值 + params["left_num"] = 99999 } else { params["left_num"] = storeSku.Stock } diff --git a/business/partner/purchase/mtwm/order_comment.go b/business/partner/purchase/mtwm/order_comment.go index b4b42be34..3a246e979 100644 --- a/business/partner/purchase/mtwm/order_comment.go +++ b/business/partner/purchase/mtwm/order_comment.go @@ -94,9 +94,9 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error) for _, fn := range mtwmComment.CommentOrderDetail { if len(fn.FoodName)-strings.LastIndex(fn.FoodName, ")") > 3 { - foodNameList[fn.FoodName] = 1 + foodNameList[strings.TrimSpace(fn.FoodName)] = 1 } else { - foodNameList[fn.FoodName[0:strings.LastIndex(fn.FoodName, "(")]] = 1 + foodNameList[strings.TrimSpace(fn.FoodName[0:strings.LastIndex(fn.FoodName, "(")])] = 1 } } nameList := make([]string, 0, 0) diff --git a/controllers/jx_order.go b/controllers/jx_order.go index 06c096850..d535a9213 100644 --- a/controllers/jx_order.go +++ b/controllers/jx_order.go @@ -520,6 +520,9 @@ func (c *OrderController) StaleIndexInfo() { if err != nil { return nil, "", err } + if len(timeList) == 2 { + timeList[1].Add((24*60 - 1) * time.Minute) + } ctx := params.Ctx if !auth2.IsV2Token(ctx.GetToken()) {