Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
7aedcbbd
Commit
7aedcbbd
authored
Jun 23, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
5c0850bb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
brg-queue-center/app/base/service/impl/utilsSve/utilsIcSve.js
+2
-2
brg-queue-center/app/base/utils/esUtils.js
+0
-1
brg-queue-center/app/config/settings.js
+1
-1
No files found.
brg-queue-center/app/base/service/impl/utilsSve/utilsIcSve.js
View file @
7aedcbbd
...
...
@@ -33,7 +33,7 @@ class UtilsIcService extends AppServiceBase {
"must"
:
[
{
"query_string"
:
{
"default_field"
:
"company_name"
,
"default_field"
:
"company_name
_standard
"
,
"query"
:
'
\
"'
+
actionBody
.
companyName
+
'
\
"'
}
}
...
...
@@ -77,7 +77,7 @@ class UtilsIcService extends AppServiceBase {
resultData
=
await
this
.
esUtils
.
execPostEs
(
settings
.
queuedName
,
params
,
esIndexName
);
var
sources
=
[];
var
data
=
{
"totalCount"
:
resultData
.
data
.
hits
.
total
,
"totalCount"
:
resultData
.
data
&&
resultData
.
data
.
hits
?
resultData
.
data
.
hits
.
total
:
0
,
"pageSize"
:
pageSize
,
"currentPage"
:
from
===
0
?
from
:
(
from
-
1
),
"list"
:
sources
...
...
brg-queue-center/app/base/utils/esUtils.js
View file @
7aedcbbd
...
...
@@ -40,7 +40,6 @@ class EsUtils {
async
execPostEs
(
queuedName
,
params
,
esIndexName
)
{
try
{
var
configInfoResult
=
await
this
.
configInfoDao
.
getList
();
configInfoResult
.
status
=
-
1
;
if
(
configInfoResult
.
status
!=
1
)
{
this
.
errorLogDao
.
addOpErrorLogs
(
"publicLogsConsumer,configInfo list is empty"
,
params
,
null
,
null
,
1
);
return
system
.
getResultSuccess
();
...
...
brg-queue-center/app/config/settings.js
View file @
7aedcbbd
...
...
@@ -9,7 +9,7 @@ var ENVINPUT = {
REDIS_PWD
:
process
.
env
.
REDIS_PWD
,
REDIS_DB
:
process
.
env
.
QUEUE_REDIS_DB
,
DB_NAME
:
process
.
env
.
QUEUE_DB_NAME
,
APP_ENV
:
process
.
env
.
APP_ENV
?
process
.
env
.
APP_ENV
:
"
dev
"
,
//运行环境
APP_ENV
:
process
.
env
.
APP_ENV
?
process
.
env
.
APP_ENV
:
"
test
"
,
//运行环境
CONSUMER_NAME
:
process
.
env
.
CONSUMER_NAME
||
"publicLogs.publicLogsConsumer"
,
//消费者名称
QUEUED_NAME
:
process
.
env
.
QUEUED_NAME
||
"LOGS-SYTXPUBLIC-MSGQ"
,
//队列名称,FAIL-失败队列(队列和失败队列一对存在进行部署)
};
...
...
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