mtps
This commit is contained in:
@@ -3389,9 +3389,13 @@ 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)))
|
priceReferList, _ := dao.GetPriceReferSnapshotNoPage(db, []int{0}, nil, []int{skuList[0].NameID}, utils.Time2Date(time.Now().AddDate(0, 0, -1)))
|
||||||
if len(priceReferList) > 0 {
|
if len(priceReferList) > 0 {
|
||||||
|
if payPercentage == 100 {
|
||||||
|
price = priceReferList[0].MidUnitPrice * payPercentage / 100
|
||||||
|
} else {
|
||||||
price = priceReferList[0].MidUnitPrice / payPercentage * 100
|
price = priceReferList[0].MidUnitPrice / payPercentage * 100
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
skuBindSkuInfo := &StoreSkuBindSkuInfo{
|
skuBindSkuInfo := &StoreSkuBindSkuInfo{
|
||||||
SkuID: skuID,
|
SkuID: skuID,
|
||||||
IsSale: 1,
|
IsSale: 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user