Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
fefe1dcb
Commit
fefe1dcb
authored
Jun 01, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.气瓶appid检索
parent
dacbb98e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
CylinderFillingRecordServiceImpl.java
...lc/biz/service/impl/CylinderFillingRecordServiceImpl.java
+8
-0
CylinderInfoServiceImpl.java
...ylinder/flc/biz/service/impl/CylinderInfoServiceImpl.java
+5
-4
No files found.
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/biz/service/impl/CylinderFillingRecordServiceImpl.java
View file @
fefe1dcb
...
@@ -337,6 +337,14 @@ public class CylinderFillingRecordServiceImpl extends BaseService<CylinderFillin
...
@@ -337,6 +337,14 @@ public class CylinderFillingRecordServiceImpl extends BaseService<CylinderFillin
boolMust
.
must
(
query
);
boolMust
.
must
(
query
);
}
}
//应用id
if
(!
ObjectUtils
.
isEmpty
(
esCylinderFillingRecordDto
.
getAppId
()))
{
flag
=
false
;
BoolQueryBuilder
query
=
QueryBuilders
.
boolQuery
();
query
.
must
(
QueryBuilders
.
termsQuery
(
"appId"
,
esCylinderFillingRecordDto
.
getAppId
().
toLowerCase
()));
boolMust
.
must
(
query
);
}
//匹配气瓶品种
//匹配气瓶品种
if
(!
ObjectUtils
.
isEmpty
(
esCylinderFillingRecordDto
.
getCylinderVariety
()))
{
if
(!
ObjectUtils
.
isEmpty
(
esCylinderFillingRecordDto
.
getCylinderVariety
()))
{
flag
=
false
;
flag
=
false
;
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/biz/service/impl/CylinderInfoServiceImpl.java
View file @
fefe1dcb
...
@@ -903,14 +903,15 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
...
@@ -903,14 +903,15 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
boolMust
.
should
(
appIdBuilder
);
boolMust
.
should
(
appIdBuilder
);
}
}
//
匹配app
id
//
应用
id
if
(!
ObjectUtils
.
isEmpty
(
cylinderInfoDto
.
getAppId
()))
{
if
(!
ObjectUtils
.
isEmpty
(
cylinderInfoDto
.
getAppId
()))
{
flag
=
false
;
flag
=
false
;
BoolQueryBuilder
appIdBuilder
=
QueryBuilders
.
boolQuery
();
BoolQueryBuilder
query
=
QueryBuilders
.
boolQuery
();
appIdBuilder
.
must
(
QueryBuilders
.
matchQuery
(
"appId"
,
"*"
+
cylinderInfoDto
.
getAppId
()
+
"*"
));
query
.
must
(
QueryBuilders
.
termsQuery
(
"appId"
,
cylinderInfoDto
.
getAppId
().
toLowerCase
()
));
boolMust
.
should
(
appIdBuilder
);
boolMust
.
must
(
query
);
}
}
//匹配产权单位
//匹配产权单位
if
(!
ObjectUtils
.
isEmpty
(
cylinderInfoDto
.
getUnitName
()))
{
if
(!
ObjectUtils
.
isEmpty
(
cylinderInfoDto
.
getUnitName
()))
{
flag
=
false
;
flag
=
false
;
...
...
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