Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
go_sku_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
685a40db
authored
Oct 13, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
ce80840a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
service/service_price.go
service/service_price.go
View file @
685a40db
...
...
@@ -193,7 +193,6 @@ func (ps *PriceService) GenerateLadderPrice(sku model.LySku) model.LySku {
priceRatioSort
=
-
1
}
sku
.
PriceRatioSort
=
priceRatioSort
//这是用来展示在商品服务的价格系数,专营的系数和代购的不一样,所以要转换一下展示形式
//是否有设置最低利润点阶梯,不足5个阶梯时,最高阶梯对应的最小利润点阶梯
//这里还要去获取type字段,因为这个是判断阶梯价类型的设置,如果是1的话,还是走以前的逻辑
...
...
@@ -375,10 +374,9 @@ func (ps *PriceService) GenerateLadderPrice(sku model.LySku) model.LySku {
if
len
(
priceRatioList
)
==
0
{
return
sku
}
fmt
.
Println
(
ladderType
)
//走阶梯价
//type = 2 的时候,阶梯都是少于等于ladderPriceMiniProfitLevel的
fmt
.
Println
(
ladderPriceMiniProfitLevel
)
//
fmt.Println(ladderPriceMiniProfitLevel)
if
ladderCount
<=
ladderPriceMiniProfitLevel
{
//这里有新的逻辑,判断售价组系数的类型,如果为1,那么就是走下面的老逻辑,否则就要走固定阶梯逻辑
if
ladderType
==
1
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment