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
c88101de
Commit
c88101de
authored
2 years ago
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改根据业务查询部门逻辑
parent
322c581c
master
first
platform-vs1
reg
suining
test
xuanhan
yanshi
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
26 deletions
+5
-26
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteMatterServiceImpl.java
...s/xhx/module/site/service/impl/SiteMatterServiceImpl.java
+5
-26
No files found.
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteMatterServiceImpl.java
View file @
c88101de
...
@@ -34,32 +34,11 @@ public class SiteMatterServiceImpl extends AbstractCRUDServiceImpl<SiteMatterDao
...
@@ -34,32 +34,11 @@ public class SiteMatterServiceImpl extends AbstractCRUDServiceImpl<SiteMatterDao
@Override
@Override
protected
void
findAfter
(
SiteMatterEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
SiteMatterEntity
>
list
)
throws
AppException
{
protected
void
findAfter
(
SiteMatterEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
SiteMatterEntity
>
list
)
throws
AppException
{
if
(
list
.
size
()>
1000000
){
List
<
Long
>
matterIdlist
=
list
.
parallelStream
().
map
(
item
->
item
.
getMatterId
()).
collect
(
Collectors
.
toList
());
Map
<
Long
,
MatterEntity
>
matterEntityMap
=
matterService
.
find
(
new
MatterQuery
().
idList
(
matterIdlist
)).
parallelStream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getId
(),
y
->
y
,
(
o
,
n
)
->
n
));
}
else
{
List
<
Long
>
matterIdlist
=
list
.
stream
().
map
(
item
->
item
.
getMatterId
()).
collect
(
Collectors
.
toList
());
Map
<
Long
,
MatterEntity
>
matterEntityMap
=
matterService
.
find
(
new
MatterQuery
().
idList
(
matterIdlist
)).
parallelStream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getId
(),
y
->
y
,
(
o
,
n
)
->
n
));
list
.
forEach
(
item
->
{
if
(!
ObjectUtils
.
isEmpty
(
item
.
getMatterId
()))
{
MatterEntity
matterEntity
=
matterEntityMap
.
get
(
item
.
getMatterId
());
if
(!
ObjectUtils
.
isEmpty
(
matterEntity
))
{
item
.
setBelongDept
(
matterEntity
.
getBelongDept
());
item
.
setWindowToTheSceneNum
(
matterEntity
.
getWindowToTheSceneNum
());
item
.
setOnlineToTheSceneNum
(
matterEntity
.
getOnlineToTheSceneNum
());
item
.
setDeptCode
(
matterEntity
.
getDeptCode
());
item
.
setAreaCode
(
matterEntity
.
getAreaCode
());
}
}
});
}
/*
list
.
forEach
(
item
->
{
list
.
forEach
(
item
->
{
if
(!
ObjectUtils
.
isEmpty
(
item
.
getMatterId
()))
{
if
(!
ObjectUtils
.
isEmpty
(
item
.
getMatterId
()))
{
MatterEntity matterEntity = matter
Service.getCache(item.getMatterId().toString
());
MatterEntity
matterEntity
=
matter
EntityMap
.
get
(
item
.
getMatterId
());
if
(!
ObjectUtils
.
isEmpty
(
matterEntity
))
{
if
(!
ObjectUtils
.
isEmpty
(
matterEntity
))
{
item
.
setBelongDept
(
matterEntity
.
getBelongDept
());
item
.
setBelongDept
(
matterEntity
.
getBelongDept
());
item
.
setWindowToTheSceneNum
(
matterEntity
.
getWindowToTheSceneNum
());
item
.
setWindowToTheSceneNum
(
matterEntity
.
getWindowToTheSceneNum
());
...
@@ -68,7 +47,7 @@ public class SiteMatterServiceImpl extends AbstractCRUDServiceImpl<SiteMatterDao
...
@@ -68,7 +47,7 @@ public class SiteMatterServiceImpl extends AbstractCRUDServiceImpl<SiteMatterDao
item
.
setAreaCode
(
matterEntity
.
getAreaCode
());
item
.
setAreaCode
(
matterEntity
.
getAreaCode
());
}
}
}
}
});
*/
});
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
}
}
...
@@ -81,7 +60,7 @@ public class SiteMatterServiceImpl extends AbstractCRUDServiceImpl<SiteMatterDao
...
@@ -81,7 +60,7 @@ public class SiteMatterServiceImpl extends AbstractCRUDServiceImpl<SiteMatterDao
protected
void
updateBefore
(
SiteMatterEntity
entity
,
Context
context
)
throws
AppException
{
protected
void
updateBefore
(
SiteMatterEntity
entity
,
Context
context
)
throws
AppException
{
super
.
updateBefore
(
entity
,
context
);
super
.
updateBefore
(
entity
,
context
);
SiteMatterEntity
beforeSiteMatterEntity
=
this
.
get
(
entity
.
getId
(),
context
);
SiteMatterEntity
beforeSiteMatterEntity
=
this
.
get
(
entity
.
getId
(),
context
);
if
(!
ObjectUtils
.
isEmpty
(
beforeSiteMatterEntity
.
getDeptId
())
&&
!
beforeSiteMatterEntity
.
getDeptId
().
equals
(
entity
.
getDeptId
()))
{
if
(!
ObjectUtils
.
isEmpty
(
beforeSiteMatterEntity
.
getDeptId
())
&&
!
beforeSiteMatterEntity
.
getDeptId
().
equals
(
entity
.
getDeptId
()))
{
//更新事项中的部门编号
//更新事项中的部门编号
MatterEntity
matterEntity
=
matterService
.
get
(
entity
.
getMatterId
(),
context
);
MatterEntity
matterEntity
=
matterService
.
get
(
entity
.
getMatterId
(),
context
);
if
(!
ObjectUtils
.
isEmpty
(
matterEntity
))
{
if
(!
ObjectUtils
.
isEmpty
(
matterEntity
))
{
...
...
This diff is collapsed.
Click to expand it.
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