From 4579a523154fac16efeaed4825e734d4c634e9c0 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Fri, 18 Jun 2021 10:08:49 +0800 Subject: [PATCH] aa --- business/jxstore/act/act.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index ddc6b3ff2..532444d0e 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -672,10 +672,10 @@ func CreateActForMtByOrder(ctx *jxcontext.Context, act *model.Act, vendorID int, for _, storeSkus := range actStoreSkuMap { for i := 0; i < len(storeSkus)-1; i++ { for j := 0; j < len(storeSkus)-i-1; j++ { - if storeSkus[j].MtwmPrice < storeSkus[j+1].MtwmPrice { - temp := storeSkus[j].MtwmPrice - storeSkus[j].MtwmPrice = storeSkus[j+1].MtwmPrice - storeSkus[j+1].MtwmPrice = temp + if storeSkus[j].MtwmPrice > storeSkus[j+1].MtwmPrice { + temp := storeSkus[j] + storeSkus[j] = storeSkus[j+1] + storeSkus[j+1] = temp } } }