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
8ff3192f
Commit
8ff3192f
authored
Nov 13, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEV] fixed error msg and add trancaction
parent
a3cc9785
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
8 deletions
+12
-8
ReportGeneratorImpl.java
...wc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
+8
-4
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+1
-1
vat-report-view.ctrl.js
...p/common/controls/vat-report-view/vat-report-view.ctrl.js
+1
-1
vatReportService.js
...rc/main/webapp/app/common/vatservices/vatReportService.js
+1
-1
vat-caculate-data.ctrl.js
...vat/reduction/vat-caculate-data/vat-caculate-data.ctrl.js
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
View file @
8ff3192f
...
...
@@ -92,11 +92,13 @@ public class ReportGeneratorImpl {
for
(
int
i
=
0
;
i
<
workbook
.
getNumberOfSheets
();
i
++)
{
Sheet
sheet
=
workbook
.
getSheetAt
(
i
);
String
code
=
sheet
.
getSheetName
();
logger
.
info
(
"-------------------------------------Begin Job [{}]------------------------------------------------------"
,
code
);
job
.
setCurrentStep
(
code
);
Optional
<
PeriodTemplate
>
periodTemplate
=
resources
.
getPeriodTemplates
().
stream
()
.
filter
(
a
->
a
.
getCode
().
equals
(
code
))
.
findFirst
();
try
{
Optional
<
PeriodTemplate
>
periodTemplate
=
resources
.
getPeriodTemplates
().
stream
()
.
filter
(
a
->
a
.
getCode
().
equals
(
code
))
.
findFirst
();
Long
templateId
;
if
(
periodTemplate
.
isPresent
())
{
...
...
@@ -387,10 +389,12 @@ public class ReportGeneratorImpl {
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
job
.
setStatus
(
WrapPeriodJobDto
.
STATUS_ERROR
);
job
.
setErrorMsg
(
"cacals report for code "
+
code
+
" failed
"
);
job
.
setErrorMsg
(
"cacals report for code "
+
code
+
" failed
with msg "
+
e
.
getMessage
()
);
}
finally
{
periodJobMapper
.
updateByPrimaryKey
(
job
);
}
logger
.
info
(
"-------------------------------------End Job [{}]------------------------------------------------------"
,
code
);
}
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
8ff3192f
...
...
@@ -495,7 +495,7 @@ public class ReportServiceImpl {
}
catch
(
Exception
e
)
{
genJob
.
setStatus
(
WrapPeriodJobDto
.
STATUS_ERROR
);
genJob
.
setErrorMsg
(
"Sever error
"
);
genJob
.
setErrorMsg
(
"Sever error
"
+
e
.
getMessage
()
);
periodJobMapper
.
updateByPrimaryKey
(
genJob
);
e
.
printStackTrace
();
}
...
...
atms-web/src/main/webapp/app/common/controls/vat-report-view/vat-report-view.ctrl.js
View file @
8ff3192f
...
...
@@ -2540,7 +2540,7 @@
$scope
.
commitApprove
=
function
(){
vatApproveService
.
approvalStatus
(
vatSessionService
.
project
.
id
,
vatSessionService
.
month
).
success
(
function
(
result
){
if
(
result
&&
result
==
'committed'
){
SweetAlert
.
error
(
$translate
.
instant
(
'报表提审中或审核通过'
)
);
SweetAlert
.
error
(
'报表提审中或审核已通过!'
);
}
else
{
SweetAlert
.
swal
({
title
:
"warning!"
,
...
...
atms-web/src/main/webapp/app/common/vatservices/vatReportService.js
View file @
8ff3192f
...
...
@@ -90,7 +90,7 @@
return
$q
.
when
(
data
);
},
function
(
data
)
{
if
(
data
.
status
==
412
){
SweetAlert
.
error
(
$translate
.
instant
(
'报表提审中或审核通过'
)
);
SweetAlert
.
error
(
'报表提审中或审核已通过!'
);
}
else
{
logInfo
.
UpdateState
=
$translate
.
instant
(
'ManualInputFail'
);
SweetAlert
.
error
(
$translate
.
instant
(
'PleaseContactAdministrator'
));
...
...
atms-web/src/main/webapp/app/vat/reduction/vat-caculate-data/vat-caculate-data.ctrl.js
View file @
8ff3192f
...
...
@@ -295,7 +295,7 @@
}
}).
error
(
function
(
data
,
status
,
config
,
statusText
)
{
if
(
status
==
412
){
SweetAlert
.
error
(
'报表提审中或审核
通过
'
);
SweetAlert
.
error
(
'报表提审中或审核
已通过!
'
);
}
});
...
...
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