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
33e24e67
authored
May 22, 2026
by
hcy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
PhysicalStock
parent
5a0ac286
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
service/service_ly.go
service/service_ly.go
View file @
33e24e67
...
@@ -339,6 +339,12 @@ func (ls *LyService) LyGoodsDetail(ctx context.Context, params RequestParams, go
...
@@ -339,6 +339,12 @@ func (ls *LyService) LyGoodsDetail(ctx context.Context, params RequestParams, go
}
else
{
}
else
{
sku
.
LadderPriceResult
=
[]
int
{}
sku
.
LadderPriceResult
=
[]
int
{}
}
}
//获取新的限制库存信息
has
,
limitStock
:=
ls
.
getLimitStock
(
sku
.
GoodsId
)
if
has
{
sku
.
Stock
=
int64
(
limitStock
)
sku
.
BatchSn
=
""
//如果存在指定库存,则批次是空
}
sku
=
ls
.
GetStock
(
sku
)
sku
=
ls
.
GetStock
(
sku
)
...
@@ -356,12 +362,7 @@ func (ls *LyService) LyGoodsDetail(ctx context.Context, params RequestParams, go
...
@@ -356,12 +362,7 @@ func (ls *LyService) LyGoodsDetail(ctx context.Context, params RequestParams, go
//获取关税以及价格转换
//获取关税以及价格转换
sku
=
ls
.
GetTariffAndPrice
(
sku
)
sku
=
ls
.
GetTariffAndPrice
(
sku
)
sku
=
priceService
.
GetComparePrice
(
sku
)
sku
=
priceService
.
GetComparePrice
(
sku
)
//获取新的限制库存信息
has
,
limitStock
:=
ls
.
getLimitStock
(
sku
.
GoodsId
)
if
has
{
sku
.
Stock
=
int64
(
limitStock
)
sku
.
BatchSn
=
""
//如果存在指定库存,则批次是空
}
//计算批次
//计算批次
ls
.
GetSkuBatchFormat
(
&
sku
)
ls
.
GetSkuBatchFormat
(
&
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