mtps
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user