Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
739df990
Commit
739df990
authored
Mar 26, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加自定义导入修改
parent
e9f0d622
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
base-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
...als/xhx/module/matter/service/impl/MatterServiceImpl.java
+3
-3
No files found.
base-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
View file @
739df990
...
...
@@ -2064,6 +2064,7 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
list
=
list
.
stream
().
distinct
().
collect
(
Collectors
.
toList
());
int
SucessCount
=
0
;
int
failCount
=
0
;
int
updateCount
=
0
;
for
(
MatterCustomImportEntity
matterCustomImportEntity
:
list
)
{
if
(
ObjectUtils
.
isEmpty
(
matterCustomImportEntity
.
getAreaCode
()))
{
log
.
info
(
"事项名称:{},区域编码为空"
,
matterCustomImportEntity
.
getMatterName
());
...
...
@@ -2158,17 +2159,16 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
}
else
{
log
.
info
(
"事项已存在,更新事项:"
+
matterEntity
.
getMatterName
());
BeanUtils
.
copyProperties
(
matterCustomImportEntity
,
matterEntity
,
new
String
[]{
"areaCode"
,
"deptName"
,
"matterName"
});
matterEntity
.
setMatterNo
(
RandomUtil
.
randomString
(
12
));
matterEntity
.
setUpdateTime
(
new
Date
());
matterEntity
.
setUpdateUserId
(
1L
);
this
.
dao
.
update
(
matterEntity
);
updateCount
++;
// failCount++;
}
}
return
Rest
.
ok
(
"成功:"
+
SucessCount
+
" 失败:"
+
failCount
);
return
Rest
.
ok
(
"成功:"
+
SucessCount
+
"
更新:"
+
updateCount
+
"
失败:"
+
failCount
);
}
...
...
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