aa
This commit is contained in:
@@ -672,10 +672,10 @@ func CreateActForMtByOrder(ctx *jxcontext.Context, act *model.Act, vendorID int,
|
|||||||
for _, storeSkus := range actStoreSkuMap {
|
for _, storeSkus := range actStoreSkuMap {
|
||||||
for i := 0; i < len(storeSkus)-1; i++ {
|
for i := 0; i < len(storeSkus)-1; i++ {
|
||||||
for j := 0; j < len(storeSkus)-i-1; j++ {
|
for j := 0; j < len(storeSkus)-i-1; j++ {
|
||||||
if storeSkus[j].MtwmPrice < storeSkus[j+1].MtwmPrice {
|
if storeSkus[j].MtwmPrice > storeSkus[j+1].MtwmPrice {
|
||||||
temp := storeSkus[j].MtwmPrice
|
temp := storeSkus[j]
|
||||||
storeSkus[j].MtwmPrice = storeSkus[j+1].MtwmPrice
|
storeSkus[j] = storeSkus[j+1]
|
||||||
storeSkus[j+1].MtwmPrice = temp
|
storeSkus[j+1] = temp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user