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
cef87346
Commit
cef87346
authored
Dec 07, 2022
by
王琮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改核酸采集导入
parent
5fa625c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
21 deletions
+14
-21
HscjServiceImpl.java
...n/java/com/ruoyi/system/service/impl/HscjServiceImpl.java
+14
-21
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/HscjServiceImpl.java
View file @
cef87346
...
@@ -189,14 +189,16 @@ public class HscjServiceImpl implements IHscjService {
...
@@ -189,14 +189,16 @@ public class HscjServiceImpl implements IHscjService {
failureList
.
add
(
hscj
);
failureList
.
add
(
hscj
);
continue
;
continue
;
}
}
//如果
小区
不为空,去数据字典匹配value
//如果
街道
不为空,去数据字典匹配value
if
(
StringUtils
.
isNotEmpty
(
hscj
.
get
Community
()))
{
if
(
StringUtils
.
isNotEmpty
(
hscj
.
get
Street
()))
{
List
<
SysDictData
>
communitys
=
DictUtils
.
getDictCache
(
"
community
"
);
List
<
SysDictData
>
communitys
=
DictUtils
.
getDictCache
(
"
street_town
"
);
List
<
String
>
values
=
communitys
.
stream
().
filter
(
l
->
hscj
.
get
Community
().
equals
(
l
.
getDictLabel
()))
List
<
String
>
values
=
communitys
.
stream
().
filter
(
l
->
hscj
.
get
Street
().
equals
(
l
.
getDictLabel
()))
.
map
(
SysDictData:
:
getDictValue
).
collect
(
Collectors
.
toList
());
.
map
(
SysDictData:
:
getDictValue
).
collect
(
Collectors
.
toList
());
if
(!
values
.
isEmpty
())
if
(!
values
.
isEmpty
())
hscj
.
set
Community
(
values
.
get
(
0
));
hscj
.
set
Street
(
values
.
get
(
0
));
else
{
else
{
hscj
.
setStreet
(
null
);
hscj
.
setCommittee
(
null
);
hscj
.
setCommunity
(
null
);
hscj
.
setCommunity
(
null
);
}
}
}
}
...
@@ -209,29 +211,20 @@ public class HscjServiceImpl implements IHscjService {
...
@@ -209,29 +211,20 @@ public class HscjServiceImpl implements IHscjService {
hscj
.
setCommittee
(
values
.
get
(
0
));
hscj
.
setCommittee
(
values
.
get
(
0
));
else
{
else
{
hscj
.
setCommittee
(
null
);
hscj
.
setCommittee
(
null
);
hscj
.
setCommunity
(
null
);
}
}
}
}
//如果
街道
不为空,去数据字典匹配value
//如果
小区
不为空,去数据字典匹配value
if
(
StringUtils
.
isNotEmpty
(
hscj
.
get
Street
()))
{
if
(
StringUtils
.
isNotEmpty
(
hscj
.
get
Community
()))
{
List
<
SysDictData
>
communitys
=
DictUtils
.
getDictCache
(
"
street_town
"
);
List
<
SysDictData
>
communitys
=
DictUtils
.
getDictCache
(
"
community
"
);
List
<
String
>
values
=
communitys
.
stream
().
filter
(
l
->
hscj
.
get
Street
().
equals
(
l
.
getDictLabel
()))
List
<
String
>
values
=
communitys
.
stream
().
filter
(
l
->
hscj
.
get
Community
().
equals
(
l
.
getDictLabel
()))
.
map
(
SysDictData:
:
getDictValue
).
collect
(
Collectors
.
toList
());
.
map
(
SysDictData:
:
getDictValue
).
collect
(
Collectors
.
toList
());
if
(!
values
.
isEmpty
())
if
(!
values
.
isEmpty
())
hscj
.
set
Street
(
values
.
get
(
0
));
hscj
.
set
Community
(
values
.
get
(
0
));
else
{
else
{
hscj
.
set
Street
(
null
);
hscj
.
set
Community
(
null
);
}
}
}
}
if
(
StringUtils
.
isNotEmpty
(
hscj
.
getCommunity
())
&&
StringUtils
.
isEmpty
(
hscj
.
getCommittee
()))
{
hscj
.
setError
(
"小区存在时社区不能为空"
);
failureList
.
add
(
hscj
);
continue
;
}
if
(
StringUtils
.
isNotEmpty
(
hscj
.
getCommittee
())
&&
StringUtils
.
isEmpty
(
hscj
.
getStreet
()))
{
hscj
.
setError
(
"社区存在时街道不能为空"
);
failureList
.
add
(
hscj
);
continue
;
}
if
(
CheckUtils
.
checkCard
(
hscj
.
getCardNo
()))
{
if
(
CheckUtils
.
checkCard
(
hscj
.
getCardNo
()))
{
hscj
.
setCheckCard
(
"正确"
);
hscj
.
setCheckCard
(
"正确"
);
trueList
.
add
(
hscj
);
trueList
.
add
(
hscj
);
...
...
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