Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_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
c6b75300
authored
Feb 02, 2023
by
SUDPTDUBLXEROFX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
标准品牌
parent
658ba30e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
service/optimum_service.go
service/optimum_service.go
View file @
c6b75300
...
...
@@ -176,6 +176,7 @@ func (qs *OptimumService) GetOptimumAttr(ctx *gin.Context) (results model.LyResp
*/
func
(
qs
*
OptimumService
)
GetOptimumAttrInfo
(
ctx
*
gin
.
Context
)
(
results
model
.
LyResponse
)
{
redisConn
:=
gredis
.
Conn
(
"search_r"
)
//修复分页数据
if
gconv
.
Int64
(
ctx
.
Request
.
FormValue
(
"page"
))
*
gconv
.
Int64
(
ctx
.
Request
.
FormValue
(
"page_size"
))
>
10000
{
results
.
ErrorCode
=
0
...
...
@@ -262,6 +263,11 @@ func (qs *OptimumService) GetOptimumAttrInfo(ctx *gin.Context) (results model.Ly
}
}
//todo 标准品牌
brand_name_json
,
_
:=
redis
.
String
(
redisConn
.
Do
(
"Hget"
,
"standard_brand"
,
v
.
BrandId
))
v
.
BrandName
=
gjson
.
Get
(
brand_name_json
,
"brand_name"
)
.
String
()
v
.
BrandId
=
gconv
.
Int
(
gjson
.
Get
(
brand_name_json
,
"brand_id"
)
.
String
())
v
.
StockStr
=
common
.
NumberToHtml
(
v
.
Stock
)
v
.
MoqStr
=
common
.
NumberToHtml
(
v
.
Moq
)
v
.
MpqStr
=
common
.
NumberToHtml
(
v
.
Mpq
)
...
...
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