Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
Details
Activity
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
33a66341
Commit
33a66341
authored
Mar 14, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
余证更改
parent
e37e74e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
FailedCardApi.java
src/main/java/com/yxproject/start/api/FailedCardApi.java
+5
-0
FailedCardServiceImpl.java
...m/yxproject/start/service/impl/FailedCardServiceImpl.java
+1
-0
No files found.
src/main/java/com/yxproject/start/api/FailedCardApi.java
View file @
33a66341
...
...
@@ -48,6 +48,10 @@ public class FailedCardApi {
List
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<>();
for
(
Object
o:
jsonarray
)
{
Map
<
String
,
Object
>
resultMap
=
failedCardService
.
selectInfoByCardId
(
o
.
toString
());
if
(
resultMap
==
null
){
resultMap
.
put
(
"ID_NO"
,
o
.
toString
());
resultMap
.
put
(
"NAME"
,
"查无此人"
);
}
resultList
.
add
(
resultMap
);
}
return
resultList
;
...
...
@@ -62,6 +66,7 @@ public class FailedCardApi {
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Boolean
insertFailedCard
(
@RequestBody
String
jsonStr
){
JSONArray
jsonarray
=
JSONArray
.
fromObject
(
jsonStr
);
System
.
out
.
println
(
"11111111111111111111"
+
String
.
valueOf
(
jsonarray
));
for
(
Object
o:
jsonarray
){
JSONObject
jsonObject
=(
JSONObject
)
o
;
Map
<
String
,
Object
>
idMap
=
failedCardService
.
selectCountIdByCardId
(
jsonObject
.
getString
(
"cardId"
));
...
...
src/main/java/com/yxproject/start/service/impl/FailedCardServiceImpl.java
View file @
33a66341
...
...
@@ -26,6 +26,7 @@ public class FailedCardServiceImpl implements FailedCardService {
@Override
public
Map
<
String
,
Object
>
selectInfoByCardId
(
String
cardId
)
{
Map
<
String
,
Object
>
result
=
failedCardMapper
.
selectInfoByCardId
(
cardId
);
return
result
;
}
...
...
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