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
12e8ecbc
authored
Mar 10, 2021
by
hcy001
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
9c6c7f7d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
service/service_zy.go
service/service_zy.go
View file @
12e8ecbc
...
@@ -126,8 +126,8 @@ func (qs *ZiyingService) ZyGoodsDetail(ctx *gin.Context, goodsIds []string, ch c
...
@@ -126,8 +126,8 @@ func (qs *ZiyingService) ZyGoodsDetail(ctx *gin.Context, goodsIds []string, ch c
lockStock
:=
qs
.
skuLockNum
(
&
redisConn
,
goodsId
)
//当前锁库库存
lockStock
:=
qs
.
skuLockNum
(
&
redisConn
,
goodsId
)
//当前锁库库存
stockG
:=
dbStock
-
lockStock
//当前可购买库存
stockG
:=
dbStock
-
lockStock
//当前可购买库存
if
stockG
>
0
{
if
stockG
>
0
{
A
.
Set
(
"actual_stock"
,
gjson
.
Get
(
info
,
"actual_stock"
)
.
Int
()
)
//锁定库存
A
.
Set
(
"actual_stock"
,
dbStock
)
//锁定库存
A
.
Set
(
"stock"
,
dbStock
)
A
.
Set
(
"stock"
,
stockG
)
}
}
A
.
Set
(
"saler_atio"
,
""
)
//
A
.
Set
(
"saler_atio"
,
""
)
//
}
}
...
...
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