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
bc10900c
Commit
bc10900c
authored
Nov 14, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] fixed batch copy config and use msg
parent
70fe571d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+14
-4
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
bc10900c
...
...
@@ -342,7 +342,11 @@ public class ReportServiceImpl {
periodCellTemplateConfigList
.
add
(
periodCellTemplateConfig
);
}
periodCellTemplateConfigMapper
.
batchInsert
(
periodCellTemplateConfigList
);
CommonUtils
.
subListWithLen
(
periodCellTemplateConfigList
,
CommonUtils
.
BATCH_NUM
).
forEach
(
batch
->{
periodCellTemplateConfigMapper
.
batchInsert
(
batch
);
});
}
private
void
fixedAccountCode
(
PeriodCellTemplateConfig
pctc
)
{
...
...
@@ -425,7 +429,12 @@ public class ReportServiceImpl {
periodCellTemplateList
.
add
(
periodCellTemplate
);
}
periodCellTemplateMapper
.
batchInsert
(
periodCellTemplateList
);
CommonUtils
.
subListWithLen
(
periodCellTemplateList
,
CommonUtils
.
BATCH_NUM
).
forEach
(
batch
->{
periodCellTemplateMapper
.
batchInsert
(
batch
);
});
}
private
List
<
Template
>
queryTemplateByGroup
(
Long
templateGroupId
)
{
...
...
@@ -510,9 +519,10 @@ public class ReportServiceImpl {
reportGenerator
.
updateWorkbookCaclsValueToDb
(
projectId
,
periodParam
,
workbook
,
resources
,
isMergeManualData
,
genJob
);
}
catch
(
Exception
e
)
{
setStatus
(
genJob
,
STATUS_ERROR
);
genJob
.
setErrorMsg
(
"Sever error "
+
e
.
getMessage
());
periodJobMapper
.
updateByPrimaryKey
(
genJob
);
e
.
printStackTrace
();
genJob
.
setErrorMsg
(
"Sever error "
+
e
.
getClass
().
getName
());
periodJobMapper
.
updateByPrimaryKey
(
genJob
);
}
}
}).
start
();
...
...
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