This commit is contained in:
苏尹岚
2020-09-29 14:58:49 +08:00
parent 85935e7880
commit 5ed74064a7

View File

@@ -3389,7 +3389,11 @@ func FocusStoreSkusBySku(ctx *jxcontext.Context, skuBindInfos []*StoreSkuBindInf
}
priceReferList, _ := dao.GetPriceReferSnapshotNoPage(db, []int{0}, nil, []int{skuList[0].NameID}, utils.Time2Date(time.Now().AddDate(0, 0, -1)))
if len(priceReferList) > 0 {
price = priceReferList[0].MidUnitPrice / payPercentage * 100
if payPercentage == 100 {
price = priceReferList[0].MidUnitPrice * payPercentage / 100
} else {
price = priceReferList[0].MidUnitPrice / payPercentage * 100
}
}
}
skuBindSkuInfo := &StoreSkuBindSkuInfo{