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
52339216
Commit
52339216
authored
Mar 15, 2019
by
gary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、fixbug
parent
7ab29d95
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
74 additions
and
7 deletions
+74
-7
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+1
-1
MyUserMapper.java
...-dao/src/main/java/pwc/taxtech/atms/dao/MyUserMapper.java
+3
-3
user-list.ctrl.js
...ebapp/app/admin/infrastructure/userList/user-list.ctrl.js
+1
-1
constant.js
atms-web/src/main/webapp/app/common/utils/constant.js
+67
-0
user.svc.js
atms-web/src/main/webapp/app/common/webservices/user.svc.js
+2
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
52339216
...
...
@@ -1720,7 +1720,7 @@ public class DataImportService extends BaseService {
// todo 调用滴滴的http财务数据抽取调用接口 List<String> codes, Integer period, List<Integer> dataTypes
OrganizationExample
example
=
new
OrganizationExample
();
example
.
createCriteria
().
andIdIn
(
dataExtractParam
.
getOrgIds
());
List
<
String
>
codes
=
organizationMapper
.
selectByExample
(
example
).
stream
().
map
(
Organization:
:
getCode
).
collect
(
Collectors
.
toList
()
);
List
<
Organization
>
orgs
=
organizationMapper
.
selectByExample
(
example
);
// HttpUtil.post();
Integer
tmsPeriod
=
DateUtils
.
strToPeriod
(
dataExtractParam
.
getPeriod
());
// data_import_log 日志记录为 EnumImportType.ExtractFinancialData
...
...
atms-dao/src/main/java/pwc/taxtech/atms/dao/MyUserMapper.java
View file @
52339216
...
...
@@ -47,12 +47,12 @@ public interface MyUserMapper extends MyMapper {
List
<
Map
<
String
,
String
>>
selectUserRoleListByUserId
(
@Param
(
value
=
"userId"
)
String
userId
);
@Select
(
"select q.id as id, q.organization_id as OrganizationID, q.user_id as UserID, q.is_accessible as IsAccessible, "
+
"q.has_original_role as HasOriginalRole from user_organization q join
U
ser u on q.user_id = u.id "
"q.has_original_role as HasOriginalRole from user_organization q join
u
ser u on q.user_id = u.id "
+
"where u.status = 1"
)
@Results
({
@Result
(
id
=
true
,
column
=
"id"
,
property
=
"id"
),
@Result
(
column
=
"OrganizationID"
,
property
=
"organizationI
D
"
),
@Result
(
column
=
"OrganizationID"
,
property
=
"organizationI
d
"
),
@Result
(
column
=
"HasOriginalRole"
,
property
=
"hasOriginalRole"
),
@Result
(
column
=
"UserID"
,
property
=
"userI
D
"
),
@Result
(
column
=
"UserID"
,
property
=
"userI
d
"
),
@Result
(
column
=
"IsAccessible"
,
property
=
"isAccessible"
)
})
List
<
UserOrganization
>
selectUserOrganizationByUserId
();
...
...
atms-web/src/main/webapp/app/admin/infrastructure/userList/user-list.ctrl.js
View file @
52339216
...
...
@@ -58,7 +58,7 @@
cellTemplate
:
function
(
container
,
options
)
{
try
{
$
(
'<a class="hyper-link">'
+
options
.
value
+
'</a>'
)
.
attr
(
'href'
,
'#/userDetail/'
+
options
.
row
.
data
.
id
)
.
attr
(
'href'
,
'#/userDetail/'
+
options
.
row
.
data
.
ID
)
.
appendTo
(
container
);
}
catch
(
e
)
{
...
...
atms-web/src/main/webapp/app/common/utils/constant.js
View file @
52339216
...
...
@@ -716,6 +716,14 @@ constant.adminPermission = {
basicData
:
{
mainData
:{
queryCode
:
'01.001.012'
},
financialData
:{
queryCode
:
'01.001.013'
},
// 企业账套
enterpriseAccountSet
:
{
// 查看
...
...
@@ -845,6 +853,65 @@ constant.adminPermission = {
}
};
constant
.
batchImportPermisson
=
{
ExtractDistribution
:{
code
:
'04.001'
,
financialDataExtraction
:{
code
:
'04.001.001'
},
invoiceDataExtraction
:{
code
:
'04.001.002'
}
},
ImportDistribution
:{
code
:
'04.002'
,
vATInvoiceRecord
:{
code
:
'04.002.001'
},
certifiedInvoicesList
:{
code
:
'04.002.002'
},
redLetterVATSpecialInvoiceInfo
:{
code
:
'04.002.003'
},
invoiceInformation
:{
code
:
'04.002.004'
},
coupaInvoiceReport
:{
code
:
'04.002.005'
},
adjustmentTable
:{
code
:
'04.002.006'
},
balanceSheetPRC
:{
code
:
'04.002.007'
},
incomeStatementPRC
:{
code
:
'04.002.008'
},
cashFlowStatement
:{
code
:
'04.002.009'
},
cITAdjustmentJournal
:{
code
:
'04.002.010'
},
cITTrialBalance
:{
code
:
'04.002.011'
},
cITDocumentSubjectMappingTable
:{
code
:
'04.002.012'
},
cITBalanceSheetPRC
:{
code
:
'04.002.013'
},
cITProfitStatementPRC
:{
code
:
'04.002.014'
},
cITEAMAssetDisposalAmountRecord
:{
code
:
'04.002.015'
},
cITPreClassifiedDataSource
:{
code
:
'04.002.016'
}
},
Configuration
:{
RevenueTypeConfiguration
:{
code
:
'04.003.001'
},
BillingRecordAndRevenueTypeMappingConfiguration
:{
code
:
'04.003.002'
},
InputRollOutConfiguration
:{
code
:
'04.003.003'
}
},
log
:{
code
:
'05'
,
dataImportRecord
:{
code
:
'04.004.001'
},
dataProcessingCheckRecord
:{
code
:
'04.004.002'
}
}
};
constant
.
analysisPermisson
=
{
code
:
'05'
,
Dashboard
:
{
code
:
'05.001'
},
DataImport
:
{
code
:
'05.002'
,
DomesticDataImport
:
{
code
:
'05.002.001'
},
InternationalDataImport
:
{
code
:
'05.002.002'
}
},
Form
:
{
code
:
'05.003'
,
TBEBITForm
:{
code
:
'05.003.001'
}
}
};
constant
.
citMenuList
=
[
constant
.
citPermission
.
dataImport
.
balanceSheet
.
queryCode
,
constant
.
citPermission
.
dataImport
.
journalEntry
.
queryCode
,
...
...
atms-web/src/main/webapp/app/common/webservices/user.svc.js
View file @
52339216
...
...
@@ -92,7 +92,7 @@ webservices.factory('userService', ['$http', 'apiConfig', 'httpCacheService', 'l
return
$http
.
post
(
'/user/addUsersToRole'
,
userRoleList
,
apiConfig
.
create
())
},
getUserRoleListByUserID
:
function
(
userId
)
{
return
$http
.
get
(
'/user/getUserRoleListByUserI
D
?userId='
+
userId
,
apiConfig
.
create
());
return
$http
.
get
(
'/user/getUserRoleListByUserI
d
?userId='
+
userId
,
apiConfig
.
create
());
},
deleteUserRoleDimension
:
function
(
userRoleList
)
{
return
$http
.
post
(
'/user/deleteUserRoleDimension'
,
userRoleList
,
apiConfig
.
create
())
...
...
@@ -104,7 +104,7 @@ webservices.factory('userService', ['$http', 'apiConfig', 'httpCacheService', 'l
return
$http
.
post
(
'/user/deleteUserRoleForOrg'
,
userOrgdto
,
apiConfig
.
create
());
},
getUserRoleByOrgIDUserID
:
function
(
userID
,
orgID
)
{
return
$http
.
get
(
'/user/getUserRoleByOrgI
DUserID?userID='
+
userID
+
'&orgID
='
+
orgID
,
apiConfig
.
create
());
return
$http
.
get
(
'/user/getUserRoleByOrgI
dUserId?userId='
+
userID
+
'&orgId
='
+
orgID
,
apiConfig
.
create
());
},
getUserRoleByUserID
:
function
(
userID
)
{
return
$http
.
get
(
'/user/getUserRoleByUserID?userID='
+
userID
,
apiConfig
.
create
());
...
...
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