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
0e707ae1
Commit
0e707ae1
authored
Apr 18, 2019
by
Memorydoc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#
parent
0f43797a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
ErrorMessage.java
...in/java/pwc/taxtech/atms/common/message/ErrorMessage.java
+1
-1
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+5
-4
vatSessionService.js
.../src/main/webapp/app/framework/utils/vatSessionService.js
+0
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/common/message/ErrorMessage.java
View file @
0e707ae1
...
...
@@ -15,7 +15,7 @@ public class ErrorMessage {
public
static
final
String
ImportFailed
=
"ImportFailed!"
;
public
static
final
String
ImportNotMatch
=
"导入文件与选择机构或期间不匹配!"
;
public
static
final
String
ExportFailed
=
"ExportFailed!"
;
public
static
final
String
NoData
=
"无数据!"
;
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
0e707ae1
...
...
@@ -965,7 +965,7 @@ public class DataImportService extends BaseService {
addDataImportLog
(
dataImportLogs
);
int
isSuccess
=
(
int
)
dataImportLogs
.
stream
().
filter
(
di
->
Boolean
.
TRUE
.
equals
(
di
.
getImportResult
())).
count
();
if
(
isSuccess
<
1
)
{
return
OperationResultDto
.
error
(
ErrorMessage
.
ImportFailed
);
return
OperationResultDto
.
error
(
ErrorMessage
.
NoData
);
}
return
operationResultDto
.
success
();
}
catch
(
Exception
e
)
{
...
...
@@ -1070,7 +1070,7 @@ public class DataImportService extends BaseService {
addDataImportLog
(
dataImportLogs
);
int
isSuccess
=
(
int
)
dataImportLogs
.
stream
().
filter
(
di
->
Boolean
.
TRUE
.
equals
(
di
.
getImportResult
())).
count
();
if
(
isSuccess
<
1
)
{
return
OperationResultDto
.
error
(
ErrorMessage
.
ImportNotMatch
);
return
OperationResultDto
.
error
(
ErrorMessage
.
NoData
);
}
return
OperationResultDto
.
success
();
}
catch
(
ServiceException
e
)
{
...
...
@@ -1174,7 +1174,7 @@ public class DataImportService extends BaseService {
int
isSuccess
=
(
int
)
dataImportLogs
.
stream
().
filter
(
di
->
Boolean
.
TRUE
.
equals
(
di
.
getImportResult
())).
count
();
addDataImportLog
(
dataImportLogs
);
if
(
isSuccess
<
1
)
{
return
OperationResultDto
.
error
(
ErrorMessage
.
ImportFailed
);
return
OperationResultDto
.
error
(
ErrorMessage
.
NoData
);
}
return
OperationResultDto
.
success
();
}
catch
(
ServiceException
e
)
{
...
...
@@ -1461,7 +1461,7 @@ public class DataImportService extends BaseService {
int
isSuccess
=
(
int
)
dataImportLogs
.
stream
().
filter
(
di
->
Boolean
.
TRUE
.
equals
(
di
.
getImportResult
())).
count
();
addDataImportLog
(
dataImportLogs
);
if
(
isSuccess
<
1
)
{
return
OperationResultDto
.
error
(
ErrorMessage
.
ImportFailed
);
return
OperationResultDto
.
error
(
ErrorMessage
.
NoData
);
}
return
OperationResultDto
.
success
();
}
catch
(
ServiceException
e
)
{
...
...
@@ -1841,6 +1841,7 @@ public class DataImportService extends BaseService {
private
int
addDataImportLog
(
List
<
DataImportLog
>
dataImportLogs
)
{
if
(
dataImportLogs
.
size
()
==
0
)
return
0
;
dataImportLogMapper
.
displayOld
(
dataImportLogs
.
get
(
0
).
getType
());
int
res
=
0
;
for
(
DataImportLog
dataImportLog
:
dataImportLogs
)
{
...
...
atms-web/src/main/webapp/app/framework/utils/vatSessionService.js
View file @
0e707ae1
webservices
.
factory
(
'vatSessionService'
,
[
'$log'
,
'localStorageService'
,
function
(
$log
,
localStorageService
)
{
'use strict'
;
$log
.
debug
(
'vatSessionService.ctor()...'
);
var
date
=
new
Date
();
var
month
=
date
.
getMonth
();
var
projectyear
=
date
.
getFullYear
();
...
...
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