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
1b8d5e18
authored
May 20, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
redis
parent
f3699e46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
service/service_sku_batch.go
service/service_sku_batch.go
View file @
1b8d5e18
...
@@ -76,10 +76,10 @@ func (ls *LyService) GetSkuBatchFormat(sku *model.LySku) {
...
@@ -76,10 +76,10 @@ func (ls *LyService) GetSkuBatchFormat(sku *model.LySku) {
}
}
func
(
ls
*
LyService
)
getSupplierBatch
(
supplierId
int64
)
[]
int
{
func
(
ls
*
LyService
)
getSupplierBatch
(
supplierId
int64
)
[]
int
{
redisCo
n
:=
gredis
.
Conn
(
"default_r"
)
skuCon
n
:=
gredis
.
Conn
(
"default_r"
)
defer
redisCo
n
.
Close
()
defer
skuCon
n
.
Close
()
info
,
err
:=
redis
.
String
(
redisCo
n
.
Do
(
"HGET"
,
"SUPPLIER_REDIS_INFO_"
,
supplierId
))
info
,
err
:=
redis
.
String
(
skuCon
n
.
Do
(
"HGET"
,
"SUPPLIER_REDIS_INFO_"
,
supplierId
))
if
err
!=
nil
||
info
==
""
{
if
err
!=
nil
||
info
==
""
{
return
nil
return
nil
}
}
...
@@ -106,7 +106,7 @@ func (ls *LyService) getSupplierBatch(supplierId int64) []int {
...
@@ -106,7 +106,7 @@ func (ls *LyService) getSupplierBatch(supplierId int64) []int {
}
}
func
(
ls
*
LyService
)
getSpotList
(
goodsId
string
)
[]
model
.
Spot
{
func
(
ls
*
LyService
)
getSpotList
(
goodsId
string
)
[]
model
.
Spot
{
redisCon
:=
gredis
.
Conn
(
"
default_r
"
)
redisCon
:=
gredis
.
Conn
(
"
spu
"
)
defer
redisCon
.
Close
()
defer
redisCon
.
Close
()
skuSpotStr
,
err
:=
redis
.
String
(
redisCon
.
Do
(
"HGET"
,
"sku_spot"
,
goodsId
))
skuSpotStr
,
err
:=
redis
.
String
(
redisCon
.
Do
(
"HGET"
,
"sku_spot"
,
goodsId
))
...
...
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