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
f2d9ee85
authored
May 13, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改系数
parent
bc059a9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
service/service_ly_common.go
service/service_ly_common.go
View file @
f2d9ee85
...
@@ -591,19 +591,19 @@ func (ls *LyService) GetTariffAndPrice(sku model.LySku) model.LySku {
...
@@ -591,19 +591,19 @@ func (ls *LyService) GetTariffAndPrice(sku model.LySku) model.LySku {
if
php2go
.
InArray
(
sku
.
Coo
,
usLabelList
)
{
if
php2go
.
InArray
(
sku
.
Coo
,
usLabelList
)
{
//转换价格
//转换价格
//判断原始人民币有没有价格,没有的话,那就是最终的人民币价格 X
2.25
//判断原始人民币有没有价格,没有的话,那就是最终的人民币价格 X
1.10
var
transformedLadderPrice
[]
model
.
LadderPrice
var
transformedLadderPrice
[]
model
.
LadderPrice
transformedLadderPrice
=
sku
.
LadderPrice
transformedLadderPrice
=
sku
.
LadderPrice
//digikey暂时不处理
//digikey暂时不处理
if
sku
.
SupplierId
!=
7
{
if
sku
.
SupplierId
!=
7
{
for
index
,
price
:=
range
sku
.
LadderPrice
{
for
index
,
price
:=
range
sku
.
LadderPrice
{
transformedLadderPrice
[
index
]
.
PriceCn
=
c
.
MyRound
(
c
.
MulFloat
(
price
.
PriceCn
,
2.25
),
4
)
transformedLadderPrice
[
index
]
.
PriceCn
=
c
.
MyRound
(
c
.
MulFloat
(
price
.
PriceCn
,
1.10
),
4
)
transformedLadderPrice
[
index
]
.
PriceAc
=
c
.
MyRound
(
c
.
MulFloat
(
price
.
PriceAc
,
2.25
),
4
)
transformedLadderPrice
[
index
]
.
PriceAc
=
c
.
MyRound
(
c
.
MulFloat
(
price
.
PriceAc
,
1.10
),
4
)
}
}
}
}
sku
.
Tariff
=
2.25
sku
.
Tariff
=
1.10
sku
.
TariffFormat
=
"1
25
%"
sku
.
TariffFormat
=
"1
0
%"
}
else
{
}
else
{
sku
.
Coo
=
""
sku
.
Coo
=
""
}
}
...
...
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