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
c0568b6d
Commit
c0568b6d
authored
Jun 26, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(重要提醒):es落库实时刷新
1.es落库实时刷新
parent
03c71331
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
EquipmentCategoryService.java
...ule/common/biz/service/impl/EquipmentCategoryService.java
+0
-23
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
deleted
100644 → 0
View file @
03c71331
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
org.springframework.data.elasticsearch.core.ElasticsearchOperations
;
import
org.springframework.stereotype.Service
;
@Service
@RequiredArgsConstructor
public
class
EquipmentCategoryService
{
private
final
ESEquipmentCategory
equipmentCategoryDao
;
private
final
ElasticsearchOperations
elasticsearchOperations
;
public
ESEquipmentCategoryDto
saveWithImmediateRefresh
(
ESEquipmentCategoryDto
dto
)
{
ESEquipmentCategoryDto
saved
=
equipmentCategoryDao
.
save
(
dto
);
// 手动触发索引刷新
elasticsearchOperations
.
indexOps
(
ESEquipmentCategoryDto
.
class
).
refresh
();
return
saved
;
}
}
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