Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
data_management_system
Project
Project
Details
Activity
Releases
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
张伯涛
data_management_system
Commits
1739161d
Commit
1739161d
authored
Nov 30, 2022
by
zhuangxinwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
方舱导出
parent
e9d2656c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
FcryController.java
.../java/com/ruoyi/web/controller/system/FcryController.java
+12
-0
FcryServiceImpl.java
...n/java/com/ruoyi/system/service/impl/FcryServiceImpl.java
+6
-2
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/FcryController.java
View file @
1739161d
...
...
@@ -135,6 +135,18 @@ public class FcryController extends BaseController
}
else
{
fcryExport
.
setStreet
(
""
);
}
if
(
StringUtils
.
isNotEmpty
(
fcryExport
.
getFcPlace
()))
{
List
<
SysDictData
>
communities
=
DictUtils
.
getDictCache
(
"shelters"
);
List
<
String
>
labels
=
communities
.
stream
().
filter
(
i
->
fcryExport
.
getFcPlace
().
equals
(
i
.
getDictValue
()))
.
map
(
SysDictData:
:
getDictLabel
).
collect
(
Collectors
.
toList
());
if
(!
labels
.
isEmpty
())
{
fcryExport
.
setFcPlace
(
labels
.
get
(
0
));
}
else
{
fcryExport
.
setFcPlace
(
""
);
}
}
else
{
fcryExport
.
setFcPlace
(
""
);
}
}
util
.
exportExcel
(
response
,
list
,
"方舱人员数据"
);
}
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/FcryServiceImpl.java
View file @
1739161d
...
...
@@ -149,6 +149,8 @@ public class FcryServiceImpl implements IFcryService
String
communityValue
=
""
;
String
committeeValue
=
""
;
String
streetValue
=
""
;
String
areaValue
=
""
;
String
fcValue
=
""
;
if
(
StringUtils
.
isNotEmpty
(
fcry
.
getCommunity
())){
//如果小区不为空,去数据字典匹配value
List
<
SysDictData
>
community
=
DictUtils
.
getDictCache
(
"community"
);
List
<
String
>
values
=
community
.
stream
().
filter
(
l
->
fcry
.
getCommunity
().
equals
(
l
.
getDictLabel
()))
...
...
@@ -187,7 +189,7 @@ public class FcryServiceImpl implements IFcryService
List
<
String
>
values
=
area
.
stream
().
filter
(
l
->
fcry
.
getArea
().
equals
(
l
.
getDictLabel
()))
.
map
(
SysDictData:
:
getDictValue
).
collect
(
Collectors
.
toList
());
if
(!
values
.
isEmpty
())
fcry
.
setArea
(
values
.
get
(
0
)
);
areaValue
=
values
.
get
(
0
);
else
{
failureList
.
add
(
fcry
);
continue
;
...
...
@@ -198,7 +200,7 @@ public class FcryServiceImpl implements IFcryService
List
<
String
>
values
=
fcPlace
.
stream
().
filter
(
l
->
fcry
.
getFcPlace
().
equals
(
l
.
getDictLabel
()))
.
map
(
SysDictData:
:
getDictValue
).
collect
(
Collectors
.
toList
());
if
(!
values
.
isEmpty
())
fc
ry
.
setFcPlace
(
values
.
get
(
0
)
);
fc
Value
=
values
.
get
(
0
);
else
{
failureList
.
add
(
fcry
);
continue
;
...
...
@@ -214,6 +216,8 @@ public class FcryServiceImpl implements IFcryService
fcry
.
setCommunity
(
communityValue
);
fcry
.
setCommittee
(
committeeValue
);
fcry
.
setStreet
(
streetValue
);
fcry
.
setArea
(
areaValue
);
fcry
.
setFcPlace
(
fcValue
);
updateList
.
add
(
fcry
);
}
else
{
...
...
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