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
7ad3f568
Commit
7ad3f568
authored
Aug 29, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一码通数据初始化同步至es修改
parent
027724e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
SuperviseInfoMapper.java
.../amos/boot/module/ymt/api/mapper/SuperviseInfoMapper.java
+3
-0
SupervisionInfoMapper.xml
...t-api/src/main/resources/mapper/SupervisionInfoMapper.xml
+7
-0
EquipmentCategoryServiceImpl.java
...le/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/mapper/SuperviseInfoMapper.java
View file @
7ad3f568
...
...
@@ -24,4 +24,7 @@ public interface SuperviseInfoMapper extends BaseMapper<SuperviseInfo> {
void
deleteDataAll
(
@Param
(
"records"
)
List
<
String
>
records
);
EsElevator
selectElevatorEsList
(
String
record
);
void
updateEsRecordBatch
(
@Param
(
"recordList"
)
List
<
String
>
recordList
);
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/SupervisionInfoMapper.xml
View file @
7ad3f568
...
...
@@ -9,6 +9,13 @@
</foreach>
</update>
<update
id=
"updateEsRecordBatch"
>
UPDATE idx_biz_jg_use_info SET "IS_NOT_ES" = 1 WHERE "RECORD" IN
<foreach
collection=
"recordList"
separator=
","
item=
"record"
open=
"("
close=
")"
>
#{record}
</foreach>
</update>
<select
id=
"selectUnitCodeList"
resultType=
"java.util.Map"
>
SELECT
ui."USE_UNIT_CREDIT_CODE" unitCode,
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
7ad3f568
...
...
@@ -1808,7 +1808,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
System
.
out
.
println
(
"批量存入es1000条数据耗时:"
+
cost
);
long
start1
=
System
.
currentTimeMillis
();
superviseInfoMapper
.
updateRecordBatch
(
recordList
);
superviseInfoMapper
.
update
Es
RecordBatch
(
recordList
);
long
end1
=
System
.
currentTimeMillis
();
long
cost1
=
end1
-
start1
;
System
.
out
.
println
(
"批量更新1000条业务数据耗时:"
+
cost1
);
...
...
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