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
dda08845
Commit
dda08845
authored
Jan 05, 2026
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(jg): 西安数据核对
1.核对数据同步接口es批量
parent
ee8a1640
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
11 deletions
+24
-11
DataHandlerServiceImpl.java
...ot/module/jg/biz/service/impl/DataHandlerServiceImpl.java
+8
-11
IdxBizJgSupervisionInfoMapper.java
.../module/ymt/api/mapper/IdxBizJgSupervisionInfoMapper.java
+5
-0
IdxBizJgSupervisionInfoMapper.xml
...c/main/resources/mapper/IdxBizJgSupervisionInfoMapper.xml
+11
-0
No files found.
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/DataHandlerServiceImpl.java
View file @
dda08845
...
...
@@ -179,8 +179,7 @@ public class DataHandlerServiceImpl {
private
final
StatisticsDataUpdateService
statisticsDataUpdateService
;
private
final
IdxBizJgRegisterInfoMapper
registerInfoMapper
;
private
final
IdxBizJgUseInfoServiceImpl
idxBizJgUseInfoServiceImpl
;
private
final
IdxBizJgSupervisionInfoMapper
idxBizJgSupervisionInfoMapper
;
private
final
IdxBizJgSupervisionInfoServiceImpl
idxBizJgSupervisionInfoServiceImpl
;
@Value
(
"${jyjc.open.online: true}"
)
...
...
@@ -2768,25 +2767,23 @@ public class DataHandlerServiceImpl {
for
(
int
i
=
1
;
i
<=
totalPage
;
i
++)
{
request
.
source
(
builder
);
SearchResponse
response
=
restHighLevelClient
.
search
(
request
,
RequestOptions
.
DEFAULT
);
List
<
ESEquipmentCategoryDto
>
esEquipmentCategoryDtos
=
new
ArrayList
<>();
for
(
org
.
elasticsearch
.
search
.
SearchHit
hit
:
response
.
getHits
())
{
JSONObject
jsonObject
=
(
JSONObject
)
JSONObject
.
toJSON
(
hit
);
ESEquipmentCategoryDto
equipmentCategoryDto
=
JSONObject
.
toJavaObject
(
jsonObject
.
getJSONObject
(
"sourceAsMap"
),
ESEquipmentCategoryDto
.
class
);
boolean
exist
=
idxBizJgSupervisionInfoServiceImpl
.
lambdaUpdate
()
.
eq
(
IdxBizJgSupervisionInfo:
:
getRecord
,
equipmentCategoryDto
.
getSEQUENCE_NBR
())
.
set
(
IdxBizJgSupervisionInfo:
:
getOrgBranchCode
,
equipmentCategoryDto
.
getOrgBranchCode
())
.
set
(
IdxBizJgSupervisionInfo:
:
getOrgBranchName
,
equipmentCategoryDto
.
getORG_BRANCH_NAME
())
.
update
();
Integer
recordCount
=
useInfoService
.
lambdaQuery
().
eq
(
IdxBizJgUseInfo:
:
getRecord
,
equipmentCategoryDto
.
getSEQUENCE_NBR
()).
count
();
if
(
exist
)
{
totalUpdate
=
totalUpdate
+
1
;
}
if
(
recordCount
>
0
)
{
equipmentCategoryDto
.
setVersion
(
version
);
}
else
{
// 数据库不存在的做标记
equipmentCategoryDto
.
setVersion
(
"-1"
);
}
esEquipmentCategory
.
save
(
equipmentCategoryDto
);
esEquipmentCategoryDtos
.
add
(
equipmentCategoryDto
);
}
if
(!
esEquipmentCategoryDtos
.
isEmpty
())
{
totalUpdate
=
esEquipmentCategoryDtos
.
size
()
+
totalUpdate
;
esEquipmentCategory
.
saveAll
(
esEquipmentCategoryDtos
);
idxBizJgSupervisionInfoServiceImpl
.
getBaseMapper
().
updateOrgBranchCodeBatch
(
esEquipmentCategoryDtos
);
}
}
}
catch
(
IOException
e
)
{
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/mapper/IdxBizJgSupervisionInfoMapper.java
View file @
dda08845
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ymt
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.common.api.dto.ESEquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.common.api.mapper.CustomBaseMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgSupervisionInfo
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
* 监督管理信息表 Mapper 接口
...
...
@@ -11,4 +15,5 @@ import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgSupervisionInfo;
*/
public
interface
IdxBizJgSupervisionInfoMapper
extends
CustomBaseMapper
<
IdxBizJgSupervisionInfo
>
{
void
updateOrgBranchCodeBatch
(
@Param
(
"dtos"
)
List
<
ESEquipmentCategoryDto
>
esEquipmentCategoryDtos
);
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/IdxBizJgSupervisionInfoMapper.xml
0 → 100644
View file @
dda08845
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgSupervisionInfoMapper"
>
<update
id=
"updateOrgBranchCodeBatch"
>
<foreach
collection=
"dtos"
separator=
";"
item=
"dto"
open=
""
close=
""
>
UPDATE idx_biz_jg_supervision_info SET "ORG_BRANCH_CODE"=#{dto.orgBranchCode}, "ORG_BRANCH_NAME"=#{dto.ORG_BRANCH_NAME} WHERE record = #{dto.SEQUENCE_NBR}
</foreach>
</update>
</mapper>
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