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
2e147269
authored
Aug 18, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
sku代购问题
parent
634a1bf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
service/service_ly_common.go
service/service_ly_common.go
View file @
2e147269
...
...
@@ -336,8 +336,8 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
/**
再去找售价组系数
**/
sku
,
priceRatioList
:=
priceService
.
GetPriceRatio
(
sku
)
sku
Data
,
priceRatioList
:=
priceService
.
GetPriceRatio
(
sku
)
sku
=
skuData
/** 这里是供应商系数,先保留这块逻辑 **/
ratio
,
_
:=
redis
.
String
(
redisCon
.
Do
(
"HGET"
,
"pool_supplier_ratio"
,
sku
.
SupplierId
))
if
ratio
==
""
{
...
...
@@ -388,6 +388,7 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
if
!
hasCoefficient
{
coefficient
=
defaultCoefficient
}
//下面是计算价格
//价格计算文档 https://docs.qq.com/doc/DR3RJcnNPeUNkWHRk
// 为何是固定的1.13,关税基本不会变,有变的话跟产品沟通手动修改即可
...
...
@@ -493,5 +494,8 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
if
len
(
data
)
>
0
{
sku
.
LadderPrice
=
data
}
fmt
.
Println
(
sku
.
PriceRatio
,
sku
.
PriceRatioSort
)
return
sku
}
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