Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
ocrCloudPlatForm
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
ocr-cloud-platform
ocrCloudPlatForm
Commits
73304dc2
Commit
73304dc2
authored
Jan 21, 2024
by
黄明步
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调用记录搜索相关
parent
dbbc8b60
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
src/main/java/com/gxmailu/ocrCloudPlatform/controller/ConfigApplicationController.java
+10
-0
src/main/java/com/gxmailu/ocrCloudPlatform/dto/RecordDto.java
+2
-1
src/main/java/com/gxmailu/ocrCloudPlatform/service/impl/ElasticSearchService.java
+4
-1
src/main/resources/application-dev.yml
+2
-1
No files found.
src/main/java/com/gxmailu/ocrCloudPlatform/controller/ConfigApplicationController.java
View file @
73304dc2
...
...
@@ -39,6 +39,16 @@ public class ConfigApplicationController {
return
Result
.
success
(
"查询成功"
,
this
.
configAbilityService
.
selectAll
());
}
/**
* 查询所有应用数据
* @return 结果
*/
@GetMapping
(
"selectApplicationAll"
)
public
Result
selectApplicationAll
(){
return
Result
.
success
(
"查询成功"
,
this
.
configApplicationService
.
getConfigApplicationAll
());
}
/**
* 根据id查询对应的应用信息
* @param id 主键
...
...
src/main/java/com/gxmailu/ocrCloudPlatform/dto/RecordDto.java
View file @
73304dc2
...
...
@@ -23,7 +23,8 @@ public class RecordDto implements Serializable {
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
endTime
;
private
Long
applicationId
;
private
String
applicationId
;
private
String
abilityId
;
private
List
<
String
>
ipScopeList
;
private
Integer
page
;
private
Integer
limit
;
...
...
src/main/java/com/gxmailu/ocrCloudPlatform/service/impl/ElasticSearchService.java
View file @
73304dc2
...
...
@@ -355,7 +355,10 @@ public class ElasticSearchService {
}));
if
(
ObjUtil
.
isNotNull
(
recordDto
.
getApplicationId
()))
{
boolQuery
.
must
(
mustQuery
->
mustQuery
.
match
(
mq
->
mq
.
field
(
"applicationId"
).
query
(
recordDto
.
getApplicationId
().
toString
())));
boolQuery
.
must
(
mustQuery
->
mustQuery
.
match
(
mq
->
mq
.
field
(
"applicationId"
).
query
(
recordDto
.
getApplicationId
())));
}
if
(
ObjUtil
.
isNotNull
(
recordDto
.
getAbilityId
()))
{
boolQuery
.
must
(
mustQuery
->
mustQuery
.
match
(
mq
->
mq
.
field
(
"abilityId"
).
query
(
recordDto
.
getAbilityId
())));
}
return
boolQuery
;
}))
...
...
src/main/resources/application-dev.yml
View file @
73304dc2
...
...
@@ -71,7 +71,7 @@ elasticsearch:
http
:
http
username
:
elastic
password
:
RQuT4eQIdIZ57waX9f87
#
#eureka:
# client:
# enabled: false
\ No newline at end of file
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