Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-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
赵啸非
sample-form-platform
Commits
db40dd8b
Commit
db40dd8b
authored
Apr 18, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加远程调试
parent
727f0a90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
22 deletions
+29
-22
sample-form-manager/pom.xml
sample-form-manager/pom.xml
+1
-0
sample-form-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterDatumServiceImpl.java
...hx/module/matter/service/impl/MatterDatumServiceImpl.java
+28
-22
No files found.
sample-form-manager/pom.xml
View file @
db40dd8b
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
<id>
test
</id>
<id>
test
</id>
<properties>
<properties>
<profiles.active>
test
</profiles.active>
<profiles.active>
test
</profiles.active>
<profiles.server.debug>
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5520
</profiles.server.debug>
<profiles.nacos.server-addr>
192.168.0.252:8848
</profiles.nacos.server-addr>
<profiles.nacos.server-addr>
192.168.0.252:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
...
...
sample-form-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterDatumServiceImpl.java
View file @
db40dd8b
...
@@ -281,31 +281,37 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
...
@@ -281,31 +281,37 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
@Override
@Override
protected
void
findAfter
(
MatterDatumEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
MatterDatumEntity
>
list
)
throws
AppException
{
protected
void
findAfter
(
MatterDatumEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
MatterDatumEntity
>
list
)
throws
AppException
{
List
<
Long
>
matterIdList
=
list
.
stream
().
map
(
item
->
item
.
getMatterId
()).
collect
(
Collectors
.
toList
());
List
<
Long
>
matterIdList
=
list
.
stream
().
map
(
item
->
item
.
getMatterId
()).
collect
(
Collectors
.
toList
());
MatterQuery
matterQuery
=
new
MatterQuery
();
if
(
ObjectUtils
.
isEmpty
(
matterIdList
)){
matterQuery
.
setIdList
(
matterIdList
);
MatterQuery
matterQuery
=
new
MatterQuery
();
Map
<
Long
,
MatterEntity
>
matterEntityMap
=
matterService
.
find
(
matterQuery
).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getId
(),
y
->
y
,
(
o
,
n
)
->
n
));
matterQuery
.
setIdList
(
matterIdList
);
Map
<
Long
,
MatterEntity
>
matterEntityMap
=
matterService
.
find
(
matterQuery
).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getId
(),
y
->
y
,
(
o
,
n
)
->
n
));
list
.
stream
().
forEach
(
entity
->
{
if
(!
ObjectUtils
.
isEmpty
(
matterEntityMap
))
{
MatterEntity
matterEntity
=
matterEntityMap
.
get
(
entity
.
getMatterId
());
if
(!
ObjectUtils
.
isEmpty
(
matterEntity
))
{
entity
.
setMatterNo
(
matterEntity
.
getMatterNo
());
entity
.
setMatterName
(
matterEntity
.
getMatterName
());
}
}
});
}
List
<
Long
>
materialIdList
=
list
.
stream
().
map
(
item
->
item
.
getId
()).
collect
(
Collectors
.
toList
());
List
<
Long
>
materialIdList
=
list
.
stream
().
map
(
item
->
item
.
getId
()).
collect
(
Collectors
.
toList
());
DatumCategoryQuery
datumCategoryQuery
=
new
DatumCategoryQuery
();
if
(!
ObjectUtils
.
isEmpty
(
materialIdList
)){
datumCategoryQuery
.
setMaterialIdList
(
materialIdList
);
DatumCategoryQuery
datumCategoryQuery
=
new
DatumCategoryQuery
();
Map
<
Long
,
DatumCategoryEntity
>
collect
=
datumCategoryService
.
find
(
datumCategoryQuery
).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getMaterialId
(),
y
->
y
,
(
o
,
n
)
->
n
));
datumCategoryQuery
.
setMaterialIdList
(
materialIdList
);
list
.
stream
().
forEach
(
entity
->
{
Map
<
Long
,
DatumCategoryEntity
>
collect
=
datumCategoryService
.
find
(
datumCategoryQuery
).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getMaterialId
(),
y
->
y
,
(
o
,
n
)
->
n
));
if
(!
ObjectUtils
.
isEmpty
(
matterEntityMap
))
{
list
.
stream
().
forEach
(
entity
->
{
MatterEntity
matterEntity
=
matterEntityMap
.
get
(
entity
.
getMatterId
());
if
(!
ObjectUtils
.
isEmpty
(
matterEntity
))
{
if
(!
ObjectUtils
.
isEmpty
(
collect
))
{
entity
.
setMatterNo
(
matterEntity
.
getMatterNo
());
DatumCategoryEntity
datumCategoryEntity
=
collect
.
get
(
entity
.
getCategoryId
());
entity
.
setMatterName
(
matterEntity
.
getMatterName
());
if
(!
ObjectUtils
.
isEmpty
(
datumCategoryEntity
))
{
}
entity
.
setCategoryId
(
datumCategoryEntity
.
getCategoryId
());
}
entity
.
setCategoryName
(
datumCategoryEntity
.
getCategoryName
());
if
(!
ObjectUtils
.
isEmpty
(
collect
))
{
}
DatumCategoryEntity
datumCategoryEntity
=
collect
.
get
(
entity
.
getCategoryId
());
if
(!
ObjectUtils
.
isEmpty
(
datumCategoryEntity
))
{
entity
.
setCategoryId
(
datumCategoryEntity
.
getCategoryId
());
entity
.
setCategoryName
(
datumCategoryEntity
.
getCategoryName
());
}
}
}
}
);
}
);
}
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
}
}
...
...
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