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
4abc4c68
Commit
4abc4c68
authored
Apr 18, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_mysql' into dev_mysql
parents
fd46b4ca
41c01ae3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
5 deletions
+21
-5
Constant.java
...api/src/main/java/pwc/taxtech/atms/constant/Constant.java
+1
-0
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+19
-4
constant.js
atms-web/src/main/webapp/app/common/utils/constant.js
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/constant/Constant.java
View file @
4abc4c68
...
...
@@ -6,6 +6,7 @@ import java.util.UUID;
public
final
class
Constant
{
public
static
final
String
Comma
=
","
;
public
static
final
String
Other
=
"其他"
;
public
static
final
String
ALL
=
"ALL"
;
public
static
final
int
WholeYear
=
-
1
;
/* ----------------------------- kevin insert -----------------*/
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
4abc4c68
...
...
@@ -1931,6 +1931,7 @@ public class DataImportService extends BaseService {
List
<
String
>
orgIds
=
organizationService
.
getMyOrgList
().
stream
().
map
(
OrgSelectDto:
:
getId
).
collect
(
Collectors
.
toList
());
// 这里会导致任何人都可以看到未映射到主体的数据
orgIds
.
add
(
""
);
orgIds
.
add
(
Constant
.
ALL
);
criteria
.
andOrganizationIdIn
(
orgIds
).
andCreateTimeBetween
(
strDate
,
endDate
);
example
.
setOrderByClause
(
"update_time desc"
);
...
...
@@ -1964,7 +1965,13 @@ public class DataImportService extends BaseService {
List
<
Integer
>
dataTypes
=
param
.
getDataTypes
();
String
operator
=
authUserHelper
.
getCurrentAuditor
().
get
();
dataTypes
.
forEach
(
type
->
{
orgs
.
forEach
(
o
->
{
List
<
Organization
>
tmpOrgList
=
Collections
.
emptyList
();
if
(
type
==
EbsExtractTypeConstant
.
RATE
)
{
tmpOrgList
=
orgs
.
stream
().
limit
(
1
).
collect
(
Collectors
.
toList
());
}
else
{
tmpOrgList
=
orgs
;
}
tmpOrgList
.
forEach
(
o
->
{
try
{
Callable
callEbs
=
new
CallEbsThread
(
type
,
o
,
ebsCallUrl
,
dataImportLogMapper
,
authUserHelper
,
idService
,
dtsTokenService
,
period
,
effectiveDateFrom
,
effectiveDateTo
,
operator
);
...
...
@@ -2114,9 +2121,17 @@ public class DataImportService extends BaseService {
int
month
=
periodInt
%
100
;
DataImportLog
log
=
new
DataImportLog
();
log
.
setTaxpayerIdNum
(
org
.
getTaxPayerNumber
());
log
.
setOrganizationId
(
org
.
getId
());
log
.
setCompanyCode
(
code
);
log
.
setCompanyName
(
org
.
getName
());
if
(
type
==
EbsExtractTypeConstant
.
RATE
)
{
log
.
setCompanyName
(
Constant
.
ALL
);
log
.
setOrganizationId
(
Constant
.
ALL
);
log
.
setCompanyCode
(
Constant
.
ALL
);
}
else
{
log
.
setCompanyName
(
org
.
getName
());
log
.
setOrganizationId
(
org
.
getId
());
log
.
setCompanyCode
(
code
);
}
log
.
setPeriodYear
(
year
);
log
.
setPeriodMonth
(
month
);
log
.
setType
(
EnumImportType
.
ExtractFinancialData
.
getCode
());
...
...
atms-web/src/main/webapp/app/common/utils/constant.js
View file @
4abc4c68
...
...
@@ -1586,7 +1586,7 @@ constant.fileTypeList = [
{
code
:
104
,
type
:
"资产负债表"
},
{
code
:
105
,
type
:
"利润表"
},
{
code
:
106
,
type
:
"直接法现金流量表"
},
{
code
:
107
,
type
:
"所有者权益变动表"
},
// {code: 107, type: "所有者权益变动表"}, //todo 暂未开放
{
code
:
108
,
type
:
"汇率表"
}
];
...
...
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