Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
f89308cd
Commit
f89308cd
authored
Jul 30, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed copy report template issue
parent
ba31817d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
TemplateGroupServiceImpl.java
...c/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
+3
-1
DataMigration.java
atms-api/src/test/java/pwc/taxtech/atms/DataMigration.java
+0
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
View file @
f89308cd
...
@@ -390,12 +390,14 @@ public class TemplateGroupServiceImpl extends AbstractService implements Templat
...
@@ -390,12 +390,14 @@ public class TemplateGroupServiceImpl extends AbstractService implements Templat
templateGroup
.
setId
(
newGroupID
);
templateGroup
.
setId
(
newGroupID
);
templateGroup
.
setCreateTime
(
now
);
templateGroup
.
setCreateTime
(
now
);
templateGroup
.
setUpdateTime
(
now
);
templateGroup
.
setUpdateTime
(
now
);
templateGroup
.
setName
(
templateGroupDto
.
getName
());
templateGroupMapper
.
insertSelective
(
templateGroup
);
templateGroupMapper
.
insertSelective
(
templateGroup
);
List
<
Template
>
templateList
=
templateDao
.
getByGroupID
(
groupID
);
List
<
Template
>
templateList
=
templateDao
.
getByGroupID
(
groupID
);
templateList
.
stream
().
forEach
(
item
->
{
templateList
.
stream
().
forEach
(
item
->
{
Long
itemID
=
item
.
getId
();
Long
itemID
=
item
.
getId
();
Long
newItemID
=
distributedIDService
.
nextId
();
Long
newItemID
=
distributedIDService
.
nextId
();
item
.
setId
(
newItemID
);
item
.
setId
(
newItemID
);
item
.
setTemplateGroupId
(
newGroupID
);
item
.
setCreateTime
(
now
);
item
.
setCreateTime
(
now
);
item
.
setUpdateTime
(
now
);
item
.
setUpdateTime
(
now
);
templateMapper
.
insertSelective
(
item
);
templateMapper
.
insertSelective
(
item
);
...
@@ -412,7 +414,7 @@ public class TemplateGroupServiceImpl extends AbstractService implements Templat
...
@@ -412,7 +414,7 @@ public class TemplateGroupServiceImpl extends AbstractService implements Templat
idMapper
.
put
(
cellID
,
newCellID
);
idMapper
.
put
(
cellID
,
newCellID
);
return
cell
;
return
cell
;
}).
collect
(
Collectors
.
toList
()),
CommonUtils
.
BATCH_NUM
);
}).
collect
(
Collectors
.
toList
()),
CommonUtils
.
BATCH_NUM
);
tmpList
.
forEach
(
list
->
cellTemplateMapper
.
batchInsert
(
list
));
tmpList
.
forEach
(
list
->
cellTemplateMapper
.
batchInsert
2
(
list
));
List
<
CellTemplateConfig
>
configList
=
cellTemplateConfigDao
.
getByTemplateID
(
itemID
);
List
<
CellTemplateConfig
>
configList
=
cellTemplateConfigDao
.
getByTemplateID
(
itemID
);
List
<
List
<
CellTemplateConfig
>>
tmpConfigList
=
CommonUtils
.
subListWithLen
(
configList
.
stream
().
map
(
cell
->
{
List
<
List
<
CellTemplateConfig
>>
tmpConfigList
=
CommonUtils
.
subListWithLen
(
configList
.
stream
().
map
(
cell
->
{
...
...
atms-api/src/test/java/pwc/taxtech/atms/DataMigration.java
View file @
f89308cd
This diff is collapsed.
Click to expand it.
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