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
8d2b4f76
Commit
8d2b4f76
authored
Mar 02, 2019
by
gary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、数据校验日志
parent
d4cf5f97
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
165 additions
and
23 deletions
+165
-23
DataImportController.java
...ava/pwc/taxtech/atms/controller/DataImportController.java
+3
-3
DataValidateLogDto.java
...rc/main/java/pwc/taxtech/atms/dto/DataValidateLogDto.java
+0
-0
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+33
-1
DataValidateLogMapper.java
...main/java/pwc/taxtech/atms/dao/DataValidateLogMapper.java
+109
-0
DataValidateLog.java
...rc/main/java/pwc/taxtech/atms/entity/DataValidateLog.java
+0
-0
DataValidateLogExample.java
.../java/pwc/taxtech/atms/entity/DataValidateLogExample.java
+0
-0
DataValidateLogMapper.xml
.../resources/pwc/taxtech/atms/dao/DataValidateLogMapper.xml
+0
-0
dataProcessService.js
.../main/webapp/app/common/vatservices/dataProcessService.js
+0
-3
vatImportService.js
...rc/main/webapp/app/common/vatservices/vatImportService.js
+3
-0
process-log.ctrl.js
...webapp/app/dataImport/log/process-log/process-log.ctrl.js
+17
-16
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/DataImportController.java
View file @
8d2b4f76
...
@@ -219,11 +219,11 @@ public class DataImportController extends BaseController {
...
@@ -219,11 +219,11 @@ public class DataImportController extends BaseController {
return
new
CamelPagingResultDto
<>(
dataImportService
.
displayImportLog
(
param
));
return
new
CamelPagingResultDto
<>(
dataImportService
.
displayImportLog
(
param
));
}
}
/*
@ResponseBody
@ResponseBody
@RequestMapping
(
value
=
"displayProcessLog"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"displayProcessLog"
,
method
=
RequestMethod
.
POST
)
public CamelPagingResultDto<Data
Process
LogDto> displayProcessLog(@RequestBody DataProcessParam param) {
public
CamelPagingResultDto
<
Data
Validate
LogDto
>
displayProcessLog
(
@RequestBody
DataProcessParam
param
)
{
return
new
CamelPagingResultDto
<>(
dataImportService
.
displayProcessLog
(
param
));
return
new
CamelPagingResultDto
<>(
dataImportService
.
displayProcessLog
(
param
));
}
*/
}
@ResponseBody
@ResponseBody
@RequestMapping
(
value
=
"callExtractFinancialData"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"callExtractFinancialData"
,
method
=
RequestMethod
.
POST
)
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/DataValidateLogDto.java
0 → 100644
View file @
8d2b4f76
This diff is collapsed.
Click to expand it.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
8d2b4f76
...
@@ -23,8 +23,10 @@ import pwc.taxtech.atms.dao.*;
...
@@ -23,8 +23,10 @@ import pwc.taxtech.atms.dao.*;
import
pwc.taxtech.atms.dpo.OrgSelectDto
;
import
pwc.taxtech.atms.dpo.OrgSelectDto
;
import
pwc.taxtech.atms.dto.DataExtractParam
;
import
pwc.taxtech.atms.dto.DataExtractParam
;
import
pwc.taxtech.atms.dto.DataImportLogDto
;
import
pwc.taxtech.atms.dto.DataImportLogDto
;
import
pwc.taxtech.atms.dto.DataValidateLogDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.dataimport.DataImportParam
;
import
pwc.taxtech.atms.dto.dataimport.DataImportParam
;
import
pwc.taxtech.atms.dto.dataimport.DataProcessParam
;
import
pwc.taxtech.atms.dto.vatdto.TrialBalanceDto
;
import
pwc.taxtech.atms.dto.vatdto.TrialBalanceDto
;
import
pwc.taxtech.atms.dto.vatdto.TrialBalanceParam
;
import
pwc.taxtech.atms.dto.vatdto.TrialBalanceParam
;
import
pwc.taxtech.atms.entity.*
;
import
pwc.taxtech.atms.entity.*
;
...
@@ -55,6 +57,8 @@ public class DataImportService extends BaseService {
...
@@ -55,6 +57,8 @@ public class DataImportService extends BaseService {
@Resource
@Resource
private
DataImportLogMapper
dataImportLogMapper
;
private
DataImportLogMapper
dataImportLogMapper
;
@Resource
@Resource
private
DataValidateLogMapper
dataValidateLogMapper
;
@Resource
private
ProfitLossStatementMapper
profitLossStatementMapper
;
private
ProfitLossStatementMapper
profitLossStatementMapper
;
@Resource
@Resource
private
BalanceSheetManualMapper
balanceSheetManualMapper
;
private
BalanceSheetManualMapper
balanceSheetManualMapper
;
...
@@ -1628,7 +1632,6 @@ public class DataImportService extends BaseService {
...
@@ -1628,7 +1632,6 @@ public class DataImportService extends BaseService {
return
res
;
return
res
;
}
}
/**
/**
* 25/02/2019 18:52
* 25/02/2019 18:52
*
*
...
@@ -1662,6 +1665,35 @@ public class DataImportService extends BaseService {
...
@@ -1662,6 +1665,35 @@ public class DataImportService extends BaseService {
return
pageInfo
;
return
pageInfo
;
}
}
/**
* 25/02/2019 18:52
*
* [type]
* @author Gary J Li
* @return
*
*/
public
PageInfo
<
DataValidateLogDto
>
displayProcessLog
(
DataProcessParam
param
)
{
DataValidateLogExample
example
=
new
DataValidateLogExample
();
DataValidateLogExample
.
Criteria
criteria
=
example
.
createCriteria
();
Page
page
=
PageHelper
.
startPage
(
param
.
getPageInfo
().
getPageIndex
(),
param
.
getPageInfo
().
getPageSize
());
List
<
String
>
orgIds
=
organizationService
.
getMyOrgList
().
stream
().
map
(
OrgSelectDto:
:
getId
).
collect
(
Collectors
.
toList
());
// 这里会导致任何人都可以看到未映射到主体的数据
orgIds
.
add
(
""
);
criteria
.
andOrganizationIdIn
(
orgIds
);
example
.
setOrderByClause
(
"update_time desc"
);
PageInfo
<
DataValidateLogDto
>
pageInfo
=
new
PageInfo
<>(
dataValidateLogMapper
.
selectByExample
(
example
).
stream
()
.
map
(
o
->
beanUtil
.
copyProperties
(
o
,
new
DataValidateLogDto
())).
collect
(
Collectors
.
toList
()));
pageInfo
.
setTotal
(
page
.
getTotal
());
return
pageInfo
;
}
public
OperationResultDto
callExtractFinancialData
(
DataExtractParam
dataExtractParam
)
{
public
OperationResultDto
callExtractFinancialData
(
DataExtractParam
dataExtractParam
)
{
// todo 调用滴滴的http财务数据抽取调用接口 List<String> codes, Integer period, List<Integer> dataTypes
// todo 调用滴滴的http财务数据抽取调用接口 List<String> codes, Integer period, List<Integer> dataTypes
OrganizationExample
example
=
new
OrganizationExample
();
OrganizationExample
example
=
new
OrganizationExample
();
...
...
atms-dao/src/main/java/pwc/taxtech/atms/dao/DataValidateLogMapper.java
0 → 100644
View file @
8d2b4f76
package
pwc
.
taxtech
.
atms
.
dao
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.session.RowBounds
;
import
pwc.taxtech.atms.MyMapper
;
import
pwc.taxtech.atms.entity.DataValidateLog
;
import
pwc.taxtech.atms.entity.DataValidateLogExample
;
@Mapper
public
interface
DataValidateLogMapper
extends
MyMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
long
countByExample
(
DataValidateLogExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int
deleteByExample
(
DataValidateLogExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int
insert
(
DataValidateLog
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int
insertSelective
(
DataValidateLog
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
List
<
DataValidateLog
>
selectByExampleWithRowbounds
(
DataValidateLogExample
example
,
RowBounds
rowBounds
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
List
<
DataValidateLog
>
selectByExample
(
DataValidateLogExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
DataValidateLog
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
DataValidateLog
record
,
@Param
(
"example"
)
DataValidateLogExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
DataValidateLog
record
,
@Param
(
"example"
)
DataValidateLogExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
DataValidateLog
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
DataValidateLog
record
);
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/entity/DataValidateLog.java
0 → 100644
View file @
8d2b4f76
This diff is collapsed.
Click to expand it.
atms-dao/src/main/java/pwc/taxtech/atms/entity/DataValidateLogExample.java
0 → 100644
View file @
8d2b4f76
This diff is collapsed.
Click to expand it.
atms-dao/src/main/resources/pwc/taxtech/atms/dao/DataValidateLogMapper.xml
0 → 100644
View file @
8d2b4f76
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/common/vatservices/dataProcessService.js
View file @
8d2b4f76
...
@@ -80,9 +80,6 @@ webservices.factory('dataProcessService', ['$log', 'vatReportService', function
...
@@ -80,9 +80,6 @@ webservices.factory('dataProcessService', ['$log', 'vatReportService', function
_status
=
status
;
_status
=
status
;
_cb
=
cb
;
_cb
=
cb
;
setTimeout
(
heartBeat
,
timeInterval
);
setTimeout
(
heartBeat
,
timeInterval
);
},
displayProcessLog
:
function
(
queryParams
)
{
return
$http
.
post
(
'/DataImport/displayProcessLog'
,
queryParams
,
apiConfig
.
create
());
}
}
};
};
...
...
atms-web/src/main/webapp/app/common/vatservices/vatImportService.js
View file @
8d2b4f76
...
@@ -402,6 +402,9 @@
...
@@ -402,6 +402,9 @@
displayImportLog
:
function
(
pageInfo
,
type
)
{
displayImportLog
:
function
(
pageInfo
,
type
)
{
return
$http
.
post
(
'/DataImport/displayImportLog'
,
{
pageInfo
:
pageInfo
,
type
:
type
},
apiConfig
.
create
());
return
$http
.
post
(
'/DataImport/displayImportLog'
,
{
pageInfo
:
pageInfo
,
type
:
type
},
apiConfig
.
create
());
},
displayProcessLog
:
function
(
queryParams
)
{
return
$http
.
post
(
'/DataImport/displayProcessLog'
,
queryParams
,
apiConfig
.
create
());
}
}
/***************************************批量数据导入服务(真) end**************************************************************/
/***************************************批量数据导入服务(真) end**************************************************************/
...
...
atms-web/src/main/webapp/app/dataImport/log/process-log/process-log.ctrl.js
View file @
8d2b4f76
...
@@ -63,49 +63,50 @@
...
@@ -63,49 +63,50 @@
allowHeaderFiltering
:
false
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'id'
)
caption
:
$translate
.
instant
(
'id'
)
},
{
},
{
dataField
:
"
taxpayerIdNum
"
,
dataField
:
"
companyCode
"
,
width
:
'15%'
,
width
:
'15%'
,
allowHeaderFiltering
:
false
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'CompanyCode'
)
caption
:
$translate
.
instant
(
'CompanyCode'
)
},
{
},
{
dataField
:
"company
Cod
e"
,
dataField
:
"company
Nam
e"
,
allowHeaderFiltering
:
false
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'CompanyName'
),
caption
:
$translate
.
instant
(
'CompanyName'
),
width
:
'1
5
%'
width
:
'1
4
%'
},
{
},
{
dataField
:
"
companyName
"
,
dataField
:
"
tmsPeriod
"
,
allowHeaderFiltering
:
false
,
allowHeaderFiltering
:
false
,
width
:
'
10
%'
,
width
:
'
8
%'
,
caption
:
$translate
.
instant
(
'
Year
Period'
)
caption
:
$translate
.
instant
(
'
TMS
Period'
)
},
{
},
{
dataField
:
"period
Year
"
,
dataField
:
"period"
,
allowHeaderFiltering
:
false
,
allowHeaderFiltering
:
false
,
width
:
'
5
%'
,
width
:
'
8
%'
,
caption
:
$translate
.
instant
(
'Period'
)
caption
:
$translate
.
instant
(
'Period'
)
},
{
},
{
dataField
:
"
periodMonth
"
,
dataField
:
"
validateContent
"
,
allowHeaderFiltering
:
false
,
allowHeaderFiltering
:
false
,
width
:
'15%'
,
width
:
'15%'
,
caption
:
$translate
.
instant
(
'ValidateContent'
)
caption
:
$translate
.
instant
(
'ValidateContent'
)
},
{
},
{
dataField
:
"
periodMonth
"
,
dataField
:
"
validateResult
"
,
allowHeaderFiltering
:
false
,
allowHeaderFiltering
:
false
,
width
:
'
5
%'
,
width
:
'
10
%'
,
caption
:
$translate
.
instant
(
'ValidateResult'
)
caption
:
$translate
.
instant
(
'ValidateResult'
)
},
{
},
{
dataField
:
"re
cordSize
"
,
dataField
:
"re
sult
"
,
allowHeaderFiltering
:
false
,
allowHeaderFiltering
:
false
,
width
:
'15%'
,
width
:
'15%'
,
caption
:
$translate
.
instant
(
'ResultMsg'
)
caption
:
$translate
.
instant
(
'ResultMsg'
)
},
{
},
{
dataField
:
"
errorMsg
"
,
dataField
:
"
validateUser
"
,
allowHeaderFiltering
:
false
,
allowHeaderFiltering
:
false
,
width
:
'10%'
,
width
:
'10%'
,
caption
:
$translate
.
instant
(
'Operater'
)
caption
:
$translate
.
instant
(
'Operater'
)
},
{
},
{
dataField
:
"
errorMsg
"
,
dataField
:
"
createTime
"
,
allowHeaderFiltering
:
false
,
allowHeaderFiltering
:
false
,
width
:
'15%'
,
dataType
:
"date"
,
width
:
'10%'
,
caption
:
$translate
.
instant
(
'OperateTime'
)
caption
:
$translate
.
instant
(
'OperateTime'
)
}
}
],
],
...
@@ -142,7 +143,7 @@
...
@@ -142,7 +143,7 @@
}
}
}
}
};
};
//
getProcessLog();
getProcessLog
();
};
};
var
getProcessLog
=
function
()
{
var
getProcessLog
=
function
()
{
...
...
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