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
fef967ce
Commit
fef967ce
authored
Apr 21, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改未多线程刷数据
parent
1f9d533a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+4
-2
DataHandlerServiceImpl.java
...ot/module/jg/biz/service/impl/DataHandlerServiceImpl.java
+5
-5
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
fef967ce
...
...
@@ -1473,7 +1473,8 @@
SELECT
u.sequence_nbr,
u.supervision_org_code,
c.company_name as supervision_org_name
c.company_name as supervision_org_name,
u.use_registration_code
FROM
"tzs_jg_use_registration" u ,
privilege_company c
...
...
@@ -1482,6 +1483,7 @@
and u.is_delete = '0'
AND c.is_deleted = FALSE
and u.status='已完成'
and u.use_registration_code
<![CDATA[<>]]>
''
ORDER BY u.audit_pass_date
</select>
<select
id=
"selectMissingSupOrgCodeUseList"
...
...
@@ -1490,7 +1492,7 @@
u.sequence_nbr,
h.change_data::json->>'orgBranchCode' as supervisionOrgCode
FROM
"
amos_tzs_biz"."
tzs_jg_use_registration" u,
"tzs_jg_use_registration" u,
"tzs_jg_registration_history" h
WHERE
u."status" = '已完成'
...
...
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 @
fef967ce
...
...
@@ -1130,7 +1130,7 @@ public class DataHandlerServiceImpl {
log
.
info
(
"存量数据刷属地监管部门到证管理表处理开始--->"
);
// 1|5|6 预处理,存量数据导入时缺少记录到tzs_jg_use_registration->supervision_org_code,先补充supervision_org_code到tzs_jg_use_registration
List
<
JgUseRegistrationDto
>
missingSupOrgCodeUses
=
useRegistrationService
.
getBaseMapper
().
selectMissingSupOrgCodeUseList
();
missingSupOrgCodeUses
.
forEach
(
u
->{
missingSupOrgCodeUses
.
parallelStream
().
forEach
(
u
->{
// TODO 历史存量数据里有:610422_三原县市场监督管理局,需要转换为:50*73*123_三原县市场监督管理局, null则挂到根节点省上
if
(
StringUtils
.
isNotEmpty
(
u
.
getSupervisoryCode
())
&&
u
.
getSupervisoryCode
().
split
(
"_"
).
length
>
1
){
String
[]
orgCodeNameArray
=
u
.
getSupervisoryCode
().
split
(
"_"
);
...
...
@@ -1156,7 +1156,7 @@ public class DataHandlerServiceImpl {
// 1|5|6 处理
AtomicReference
<
Long
>
dealNum
=
new
AtomicReference
<>(
0L
);
List
<
JgUseRegistrationDto
>
useRegistrations
=
useRegistrationService
.
getBaseMapper
().
getListOfPass
();
useRegistrations
.
forEach
(
u
->{
useRegistrations
.
parallelStream
().
forEach
(
u
->{
LambdaUpdateWrapper
<
JgUseRegistrationManage
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
eq
(
JgUseRegistrationManage:
:
getUseRegistrationCode
,
u
.
getUseRegistrationCode
());
updateWrapper
.
set
(
JgUseRegistrationManage:
:
getSuperviseOrgCode
,
u
.
getSupervisionOrgCode
());
...
...
@@ -1166,7 +1166,7 @@ public class DataHandlerServiceImpl {
});
// 2 处理
List
<
JgVehicleInformation
>
vehicleUseRegs
=
jgVehicleInformationService
.
getBaseMapper
().
getListOfPass
();
vehicleUseRegs
.
forEach
(
u
->{
vehicleUseRegs
.
parallelStream
().
forEach
(
u
->{
LambdaUpdateWrapper
<
JgUseRegistrationManage
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
eq
(
JgUseRegistrationManage:
:
getUseRegistrationCode
,
u
.
getUseRegistrationCode
());
updateWrapper
.
set
(
JgUseRegistrationManage:
:
getSuperviseOrgCode
,
u
.
getOrgBranchCode
());
...
...
@@ -1176,7 +1176,7 @@ public class DataHandlerServiceImpl {
});
// 3 处理
List
<
JgChangeVehicleRegistrationUnit
>
vehicleRegistrationUnits
=
jgChangeVehicleRegistrationUnitMapper
.
getListOfPass
();
vehicleRegistrationUnits
.
forEach
(
u
->{
vehicleRegistrationUnits
.
parallelStream
().
forEach
(
u
->{
LambdaUpdateWrapper
<
JgUseRegistrationManage
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
eq
(
JgUseRegistrationManage:
:
getUseRegistrationCode
,
u
.
getUseRegistCode
());
updateWrapper
.
set
(
JgUseRegistrationManage:
:
getSuperviseOrgCode
,
u
.
getOrgBranchCode
());
...
...
@@ -1186,7 +1186,7 @@ public class DataHandlerServiceImpl {
});
// 4 处理
List
<
JgChangeRegistrationTransfer
>
transfers
=
jgChangeRegistrationTransferMapper
.
getListOfPass
();
transfers
.
forEach
(
u
->{
transfers
.
parallelStream
().
forEach
(
u
->{
if
(
StringUtils
.
isNotEmpty
(
u
.
getRemark
())
&&
u
.
getRemark
().
split
(
"_"
).
length
>
1
){
String
[]
orgCodeNameArray
=
u
.
getRemark
().
split
(
"_"
);
LambdaUpdateWrapper
<
JgUseRegistrationManage
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
...
...
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