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
251aa622
authored
Dec 29, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
大陆货期
parent
cf2de43c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
service/parity_service.go
service/parity_service.go
View file @
251aa622
...
...
@@ -44,10 +44,8 @@ func (qs *ParityService) GetParity(ctx *gin.Context) (results model.LyResponse)
}
//获取查询条件
queryString
:=
query
.
GetParityQuery
(
ctx
,
target_goods_name
,
target_goods_type
)
indexTarget
:=
"liexin_ziying"
if
deliver
==
"2"
{
indexTarget
=
config
.
Get
(
"es.search_supplier"
)
.
String
();
}
indexTarget
:=
config
.
Get
(
"es.search_supplier"
)
.
String
()
+
",liexin_ziying"
//所有索引参与比价
//查询es
esResult
,
err
:=
es
.
CurlEsPrimary
(
indexTarget
,
queryString
)
if
err
!=
nil
{
...
...
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