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
53d307a2
Commit
53d307a2
authored
May 08, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
feca00ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
16 deletions
+18
-16
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+18
-16
No files found.
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
53d307a2
...
@@ -594,22 +594,24 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -594,22 +594,24 @@ public class TaskListServiceImpl implements TaskListService {
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
saveTask
(
List
<
Map
<
String
,
Object
>>
list
,
String
submitName
,
String
process
)
{
public
boolean
saveTask
(
List
<
Map
<
String
,
Object
>>
list
,
String
submitName
,
String
process
)
{
Map
<
String
,
Object
>
stringObjectMap
=
list
.
get
(
0
);
if
(
list
.
size
()>
0
){
TaskEntity
taskEntity
=
new
TaskEntity
();
Map
<
String
,
Object
>
stringObjectMap
=
list
.
get
(
0
);
taskEntity
.
setCardType
(
Long
.
valueOf
(
stringObjectMap
.
get
(
"CARD_TYPE_ID"
)
+
""
));
TaskEntity
taskEntity
=
new
TaskEntity
();
taskEntity
.
setCountyCode
(
stringObjectMap
.
get
(
"COUNTY_CODE"
)
+
""
);
taskEntity
.
setCardType
(
Long
.
valueOf
(
stringObjectMap
.
get
(
"CARD_TYPE_ID"
)
+
""
));
taskEntity
.
setSubmitName
(
submitName
);
taskEntity
.
setCountyCode
(
stringObjectMap
.
get
(
"COUNTY_CODE"
)
+
""
);
taskEntity
.
setTaskStateId
(
Long
.
valueOf
(
process
));
taskEntity
.
setSubmitName
(
submitName
);
saveTask
(
taskEntity
);
taskEntity
.
setTaskStateId
(
Long
.
valueOf
(
process
));
for
(
Object
object
:
list
)
{
saveTask
(
taskEntity
);
Map
<
String
,
Object
>
map
=
(
Map
<
String
,
Object
>)
object
;
for
(
Object
object
:
list
)
{
GroupNoEntity
groupNoEntity
=
new
GroupNoEntity
();
Map
<
String
,
Object
>
map
=
(
Map
<
String
,
Object
>)
object
;
groupNoEntity
.
setGroupNo
(
map
.
get
(
"GROUP_NO"
)
+
""
);
GroupNoEntity
groupNoEntity
=
new
GroupNoEntity
();
groupNoEntity
.
setInvalidCount
(
Long
.
valueOf
(
map
.
get
(
"INVALID_COUNT"
)
+
""
));
groupNoEntity
.
setGroupNo
(
map
.
get
(
"GROUP_NO"
)
+
""
);
groupNoEntity
.
setValidCount
(
Long
.
valueOf
(
map
.
get
(
"VALID_COUNT"
)
+
""
));
groupNoEntity
.
setInvalidCount
(
Long
.
valueOf
(
map
.
get
(
"INVALID_COUNT"
)
+
""
));
groupNoEntity
.
setSpecialCardCount
((
long
)
0
);
groupNoEntity
.
setValidCount
(
Long
.
valueOf
(
map
.
get
(
"VALID_COUNT"
)
+
""
));
groupNoEntity
.
setTaskId
(
taskEntity
.
getTaskId
());
groupNoEntity
.
setSpecialCardCount
((
long
)
0
);
groupNoMapper
.
saveGroupNo
(
groupNoEntity
);
groupNoEntity
.
setTaskId
(
taskEntity
.
getTaskId
());
groupNoMapper
.
saveGroupNo
(
groupNoEntity
);
}
}
}
return
true
;
return
true
;
...
...
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