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
c3db3770
Commit
c3db3770
authored
Nov 30, 2022
by
zhuangxinwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小区风控导出
parent
377985cb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
3 deletions
+39
-3
FkqkController.java
.../java/com/ruoyi/web/controller/system/FkqkController.java
+36
-0
Fkqk.java
ruoyi-system/src/main/java/com/ruoyi/system/domain/Fkqk.java
+3
-3
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/FkqkController.java
View file @
c3db3770
...
...
@@ -86,6 +86,42 @@ public class FkqkController extends BaseController
}
else
{
fkqkExport
.
setCommunity
(
""
);
}
if
(
StringUtils
.
isNotEmpty
(
fkqkExport
.
getArea
()))
{
List
<
SysDictData
>
communities
=
DictUtils
.
getDictCache
(
"residential_area"
);
List
<
String
>
labels
=
communities
.
stream
().
filter
(
i
->
fkqkExport
.
getArea
().
equals
(
i
.
getDictValue
()))
.
map
(
SysDictData:
:
getDictLabel
).
collect
(
Collectors
.
toList
());
if
(!
labels
.
isEmpty
())
{
fkqkExport
.
setArea
(
labels
.
get
(
0
));
}
else
{
fkqkExport
.
setArea
(
""
);
}
}
else
{
fkqkExport
.
setArea
(
""
);
}
if
(
StringUtils
.
isNotEmpty
(
fkqkExport
.
getStreet
()))
{
List
<
SysDictData
>
communities
=
DictUtils
.
getDictCache
(
"street_town"
);
List
<
String
>
labels
=
communities
.
stream
().
filter
(
i
->
fkqkExport
.
getStreet
().
equals
(
i
.
getDictValue
()))
.
map
(
SysDictData:
:
getDictLabel
).
collect
(
Collectors
.
toList
());
if
(!
labels
.
isEmpty
())
{
fkqkExport
.
setStreet
(
labels
.
get
(
0
));
}
else
{
fkqkExport
.
setStreet
(
""
);
}
}
else
{
fkqkExport
.
setStreet
(
""
);
}
if
(
StringUtils
.
isNotEmpty
(
fkqkExport
.
getCommittee
()))
{
List
<
SysDictData
>
communities
=
DictUtils
.
getDictCache
(
"committee"
);
List
<
String
>
labels
=
communities
.
stream
().
filter
(
i
->
fkqkExport
.
getCommittee
().
equals
(
i
.
getDictValue
()))
.
map
(
SysDictData:
:
getDictLabel
).
collect
(
Collectors
.
toList
());
if
(!
labels
.
isEmpty
())
{
fkqkExport
.
setCommittee
(
labels
.
get
(
0
));
}
else
{
fkqkExport
.
setCommittee
(
""
);
}
}
else
{
fkqkExport
.
setCommittee
(
""
);
}
}
util
.
exportExcel
(
response
,
list
,
"小区封控情况数据"
);
}
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/Fkqk.java
View file @
c3db3770
...
...
@@ -25,14 +25,14 @@ public class Fkqk extends BaseEntity
private
String
community
;
/** 所在区 */
@Excel
(
name
=
"所在区"
,
dictType
=
"residential_area"
)
@Excel
(
name
=
"所在区"
)
private
String
area
;
/** 街道/镇名称 */
@Excel
(
name
=
"街道/镇名称"
,
dictType
=
"street_town"
)
@Excel
(
name
=
"街道/镇名称"
)
private
String
street
;
@Excel
(
name
=
"居委会"
,
dictType
=
"committee"
)
@Excel
(
name
=
"居委会"
)
private
String
committee
;
/** 楼号 */
...
...
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