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
f85805b1
Commit
f85805b1
authored
Mar 06, 2026
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg) :es操作
1.删除冗余刷新
parent
af252cde
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
21 deletions
+1
-21
EquipmentCategoryService.java
...ule/common/biz/service/impl/EquipmentCategoryService.java
+0
-14
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+1
-7
No files found.
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/EquipmentCategoryService.java
View file @
f85805b1
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.common.api.dao.ESEquipmentCategory
;
import
com.yeejoin.amos.boot.module.common.api.dto.ESEquipmentCategoryDto
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.elasticsearch.action.search.SearchRequest
;
import
org.elasticsearch.action.search.SearchRequest
;
...
@@ -11,7 +9,6 @@ import org.elasticsearch.client.RestHighLevelClient;
...
@@ -11,7 +9,6 @@ import org.elasticsearch.client.RestHighLevelClient;
import
org.elasticsearch.index.query.QueryBuilders
;
import
org.elasticsearch.index.query.QueryBuilders
;
import
org.elasticsearch.search.SearchHit
;
import
org.elasticsearch.search.SearchHit
;
import
org.elasticsearch.search.builder.SearchSourceBuilder
;
import
org.elasticsearch.search.builder.SearchSourceBuilder
;
import
org.springframework.data.elasticsearch.core.ElasticsearchOperations
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.io.IOException
;
import
java.io.IOException
;
...
@@ -26,19 +23,8 @@ import static com.yeejoin.amos.boot.module.common.api.constant.TZSCommonConstant
...
@@ -26,19 +23,8 @@ import static com.yeejoin.amos.boot.module.common.api.constant.TZSCommonConstant
@Slf4j
@Slf4j
public
class
EquipmentCategoryService
{
public
class
EquipmentCategoryService
{
private
final
ESEquipmentCategory
equipmentCategoryDao
;
private
final
ElasticsearchOperations
elasticsearchOperations
;
private
final
RestHighLevelClient
restHighLevelClient
;
private
final
RestHighLevelClient
restHighLevelClient
;
public
ESEquipmentCategoryDto
saveWithImmediateRefresh
(
ESEquipmentCategoryDto
dto
)
{
ESEquipmentCategoryDto
saved
=
equipmentCategoryDao
.
save
(
dto
);
// 手动触发索引刷新
elasticsearchOperations
.
indexOps
(
ESEquipmentCategoryDto
.
class
).
refresh
();
return
saved
;
}
public
List
<
String
>
findSequenceNbrByIds
(
List
<
String
>
ids
)
{
public
List
<
String
>
findSequenceNbrByIds
(
List
<
String
>
ids
)
{
SearchSourceBuilder
sourceBuilder
=
new
SearchSourceBuilder
()
SearchSourceBuilder
sourceBuilder
=
new
SearchSourceBuilder
()
.
query
(
QueryBuilders
.
termsQuery
(
"SEQUENCE_NBR.keyword"
,
ids
))
.
query
(
QueryBuilders
.
termsQuery
(
"SEQUENCE_NBR.keyword"
,
ids
))
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
View file @
f85805b1
...
@@ -278,8 +278,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -278,8 +278,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
@Autowired
@Autowired
ESEquipmentCategory
esEquipmentCategory
;
ESEquipmentCategory
esEquipmentCategory
;
@Autowired
@Autowired
EquipmentCategoryService
equipmentCategoryService
;
@Autowired
ICommonService
commonService
;
ICommonService
commonService
;
@Autowired
@Autowired
CommonMapper
commonMapper
;
CommonMapper
commonMapper
;
...
@@ -310,8 +308,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -310,8 +308,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
@Autowired
@Autowired
private
IdxBizJgInspectionDetectionInfoServiceImpl
idxBizJgInspectionDetectionInfoService
;
private
IdxBizJgInspectionDetectionInfoServiceImpl
idxBizJgInspectionDetectionInfoService
;
@Autowired
@Autowired
private
IIdxBizJgOtherInfoService
idxBizJgOtherInfoService
;
@Autowired
private
CodeUtil
codeUtil
;
private
CodeUtil
codeUtil
;
@Autowired
@Autowired
private
TzsServiceFeignClient
tzsServiceFeignClient
;
private
TzsServiceFeignClient
tzsServiceFeignClient
;
...
@@ -336,8 +332,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -336,8 +332,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
@Autowired
@Autowired
private
JgRegistrationHistoryServiceImpl
jgRegistrationHistoryService
;
private
JgRegistrationHistoryServiceImpl
jgRegistrationHistoryService
;
@Autowired
@Autowired
private
SafetyProblemTracingMapper
safetyProblemTracingMapper
;
@Autowired
private
RedisTemplate
<
String
,
String
>
redisTemplate
;
private
RedisTemplate
<
String
,
String
>
redisTemplate
;
@Autowired
@Autowired
private
TzBaseEnterpriseInfoMapper
baseEnterpriseInfoMapper
;
private
TzBaseEnterpriseInfoMapper
baseEnterpriseInfoMapper
;
...
@@ -4171,7 +4165,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -4171,7 +4165,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
dto
.
setNEXT_INSPECT_DATE
(
DateUtil
.
parse
(
DateUtil
.
format
(
nextInspectDate
,
DatePattern
.
NORM_DATE_PATTERN
)).
getTime
());
dto
.
setNEXT_INSPECT_DATE
(
DateUtil
.
parse
(
DateUtil
.
format
(
nextInspectDate
,
DatePattern
.
NORM_DATE_PATTERN
)).
getTime
());
}
}
this
.
setWhetherSphericalTank
(
dto
);
this
.
setWhetherSphericalTank
(
dto
);
e
quipmentCategoryService
.
saveWithImmediateRefresh
(
dto
);
e
sEquipmentCategory
.
save
(
dto
);
}
}
}
}
...
...
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