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
baa769c6
Commit
baa769c6
authored
Mar 26, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加自定义导入修改
parent
99d9dc1a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
1 deletion
+53
-1
base-manager/src/main/java/com/mortals/xhx/module/matter/model/vo/MatterCustomImportEntity.java
.../xhx/module/matter/model/vo/MatterCustomImportEntity.java
+8
-0
base-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
...als/xhx/module/matter/service/impl/MatterServiceImpl.java
+45
-1
No files found.
base-manager/src/main/java/com/mortals/xhx/module/matter/model/vo/MatterCustomImportEntity.java
View file @
baa769c6
...
...
@@ -83,6 +83,14 @@ public class MatterCustomImportEntity extends BaseEntityLong {
private
String
eventTypeShow
;
/**
* 网站名称
*/
@Excel
(
name
=
"网站名称"
)
private
String
webName
;
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
this
.
areaCode
,
this
.
getMatterName
());
...
...
base-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
View file @
baa769c6
...
...
@@ -19,6 +19,7 @@ import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import
com.mortals.framework.util.DataUtil
;
import
com.mortals.framework.util.ThreadPool
;
import
com.mortals.xhx.base.framework.config.InterceptorConfig
;
import
com.mortals.xhx.common.code.AppTypeEnum
;
import
com.mortals.xhx.common.code.FiletypeEnum
;
import
com.mortals.xhx.common.code.SourceEnum
;
import
com.mortals.xhx.common.code.YesNoEnum
;
...
...
@@ -2155,15 +2156,58 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
matterFlowlimitService
.
save
(
matterFlowlimitEntities
);
//新增渠道
MatterChannelEntity
matterChannelEntity
=
new
MatterChannelEntity
();
matterChannelEntity
.
initAttrValue
();
matterChannelEntity
.
setMatterId
(
matterEntity
.
getId
());
matterChannelEntity
.
setMatterCode
(
matterEntity
.
getMatterNo
());
matterChannelEntity
.
setMatterName
(
matterEntity
.
getMatterName
());
matterChannelEntity
.
setName
(
matterCustomImportEntity
.
getWebName
());
matterChannelEntity
.
setUrl
(
matterCustomImportEntity
.
getNetApplyUrl
());
matterChannelEntity
.
setCreateTime
(
new
Date
());
matterChannelEntity
.
setCreateUserId
(
1L
);
matterChannelService
.
save
(
matterChannelEntity
);
SucessCount
++;
}
else
{
log
.
info
(
"事项已存在,更新事项:"
+
matterEntity
.
getMatterName
());
BeanUtils
.
copyProperties
(
matterCustomImportEntity
,
matterEntity
,
new
String
[]{
"id"
,
"areaCode"
,
"deptName"
,
"matterName"
});
matterEntity
.
setUpdateTime
(
new
Date
());
matterEntity
.
setUpdateUserId
(
1L
);
this
.
dao
.
update
(
matterEntity
);
MatterChannelQuery
channelQuery
=
new
MatterChannelQuery
();
channelQuery
.
setMatterId
(
matterEntity
.
getId
());
channelQuery
.
setAppType
(
0
);
List
<
MatterChannelEntity
>
matterChannelEntities
=
matterChannelService
.
find
(
channelQuery
);
if
(!
ObjectUtils
.
isEmpty
(
matterChannelEntities
)){
MatterChannelEntity
matterChannelEntity
=
matterChannelEntities
.
get
(
0
);
matterChannelEntity
.
setName
(
matterCustomImportEntity
.
getWebName
());
matterChannelEntity
.
setUrl
(
matterCustomImportEntity
.
getNetApplyUrl
());
matterChannelEntity
.
setUpdateTime
(
new
Date
());
matterChannelEntity
.
setUpdateUserId
(
1L
);
matterChannelService
.
update
(
matterChannelEntity
);
}
else
{
//新增渠道
MatterChannelEntity
matterChannelEntity
=
new
MatterChannelEntity
();
matterChannelEntity
.
initAttrValue
();
matterChannelEntity
.
setMatterId
(
matterEntity
.
getId
());
matterChannelEntity
.
setMatterCode
(
matterEntity
.
getMatterNo
());
matterChannelEntity
.
setMatterName
(
matterEntity
.
getMatterName
());
matterChannelEntity
.
setName
(
matterCustomImportEntity
.
getWebName
());
matterChannelEntity
.
setUrl
(
matterCustomImportEntity
.
getNetApplyUrl
());
matterChannelEntity
.
setCreateTime
(
new
Date
());
matterChannelEntity
.
setCreateUserId
(
1L
);
matterChannelService
.
save
(
matterChannelEntity
);
}
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