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
c6777ae0
Commit
c6777ae0
authored
May 06, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、EBS callback;2、数据日志记录页面分页;3、VAT数据预览各列宽度;4、VAT日记账数据预览导出bug;5、VAT下载的模板
parent
14c21be7
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
75 additions
and
31 deletions
+75
-31
JournalEntryExportDto.java
...pwc/taxtech/atms/dto/vatdto/dd/JournalEntryExportDto.java
+8
-0
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+1
-1
EbsApiServiceImpl.java
...java/pwc/taxtech/atms/service/impl/EbsApiServiceImpl.java
+25
-0
InvoiceData.xlsx
...i/src/main/resources/Document/DataImport/InvoiceData.xlsx
+0
-0
import-log.ctrl.js
...n/webapp/app/dataImport/log/import-log/import-log.ctrl.js
+0
-1
import-log.html
...main/webapp/app/dataImport/log/import-log/import-log.html
+2
-2
import-log.less
...main/webapp/app/dataImport/log/import-log/import-log.less
+1
-0
vat-preview-certified-invoices-list.ctrl.js
...invoices-list/vat-preview-certified-invoices-list.ctrl.js
+12
-10
vat-preview-invoice-record.ctrl.js
...preview-invoice-record/vat-preview-invoice-record.ctrl.js
+6
-6
vat-preview-red-letter-info-tab.ctrl.js
...d-letter-info-tab/vat-preview-red-letter-info-tab.ctrl.js
+20
-11
No files found.
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/dd/JournalEntryExportDto.java
View file @
c6777ae0
...
...
@@ -219,6 +219,14 @@ public class JournalEntryExportDto {
private
Date
updateTime
;
public
Integer
getTmsPeriod
()
{
return
tmsPeriod
;
}
public
void
setTmsPeriod
(
Integer
tmsPeriod
)
{
this
.
tmsPeriod
=
tmsPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column journal_entry.id
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
c6777ae0
...
...
@@ -2199,7 +2199,6 @@ public class DataImportService extends BaseService {
DataImportLogExample
example
=
new
DataImportLogExample
();
DataImportLogExample
.
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
());
//财务数据抽取展示抽取记录除了admin能查看所有操作人员的操作,其余人员只能看到本身的
String
uid
=
authUserHelper
.
getCurrentUserId
();
...
...
@@ -2210,6 +2209,7 @@ public class DataImportService extends BaseService {
criteria
.
andOrganizationIdIn
(
orgIds
).
andCreateTimeBetween
(
strDate
,
endDate
).
andOperatorEqualTo
(
authUserHelper
.
getCurrentAuditor
().
get
());
}
example
.
setOrderByClause
(
"update_time desc"
);
Page
page
=
PageHelper
.
startPage
(
param
.
getPageInfo
().
getPageIndex
(),
param
.
getPageInfo
().
getPageSize
());
PageInfo
<
DataImportLogDto
>
pageInfo
=
new
PageInfo
<>(
dataImportLogMapper
.
selectByExample
(
example
).
stream
()
.
map
(
o
->
beanUtil
.
copyProperties
(
o
,
new
DataImportLogDto
())).
collect
(
Collectors
.
toList
()));
pageInfo
.
setTotal
(
page
.
getTotal
());
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/EbsApiServiceImpl.java
View file @
c6777ae0
...
...
@@ -810,6 +810,31 @@ public class EbsApiServiceImpl implements EbsApiService {
@Override
public
void
changeCallBackStatus
(
EbsCallBackDto
ebsCallBackDto
)
{
//当调用EBS接口失败之后,由于EBS调用callback和EBS返回response时间上几乎没有差异,
// 但callback的执行代码依赖于response返回后的插入代码,那就存在程序会先执行response还是先执行callback的问题,
// 在此做出判断先查一下数据库并给出查询次数限制防止一直查询数据库 create by zhikai.z.wei 20190505 17:08 start
//循环次数
int
loopTimes
=
0
;
while
(
loopTimes
<
3
){
DataImportLog
byPrimaryKey
=
dataImportLogMapper
.
selectByPrimaryKey
(
ebsCallBackDto
.
getTaskId
());
if
(
byPrimaryKey
==
null
){
try
{
logger
.
info
(
String
.
format
(
"EBS Callback 未查询到抽取记录,沉睡2S taskId = [%s]"
,
ebsCallBackDto
.
getTaskId
()));
Thread
.
sleep
(
2000
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
logger
.
error
(
String
.
format
(
"EBS CallBack 线程沉睡异常 taskId = [%s]"
,
ebsCallBackDto
.
getTaskId
()));
}
}
else
{
break
;
}
if
(
loopTimes
==
2
){
logger
.
error
(
String
.
format
(
"循环三次仍未查询到抽取记录 taskId = [%s]"
,
ebsCallBackDto
.
getTaskId
()));
break
;
}
loopTimes
++;
}
// 在此做出判断先查一下数据库并给出查询次数限制防止一直查询数据库 create by zhikai.z.wei 20190505 17:08 end
DataImportLog
dataImportLog
=
new
DataImportLog
();
dataImportLog
.
setId
(
ebsCallBackDto
.
getTaskId
());
dataImportLog
.
setImportResult
(
"S"
.
equals
(
ebsCallBackDto
.
getTaskStatus
())?
true
:
false
);
...
...
atms-api/src/main/resources/Document/DataImport/InvoiceData.xlsx
View file @
c6777ae0
No preview for this file type
atms-web/src/main/webapp/app/dataImport/log/import-log/import-log.ctrl.js
View file @
c6777ae0
...
...
@@ -154,7 +154,6 @@
width
:
518
,
visible
:
true
},
height
:
'99%'
,
headerFilter
:
{
visible
:
false
,
texts
:
{
...
...
atms-web/src/main/webapp/app/dataImport/log/import-log/import-log.html
View file @
c6777ae0
...
...
@@ -20,10 +20,10 @@
<div
id=
"importLogGridContainer"
dx-data-grid=
"importLogGridOptions"
style=
"margin-top: 30px;"
>
</div>
<
!--<
div class="page-footer">
<div
class=
"page-footer"
>
<ack-pagination
page-options=
"pagingOptions"
refresh-table=
"refreshConfigGrid()"
></ack-pagination>
</div>
-->
</div>
</div>
</div>
</div>
...
...
atms-web/src/main/webapp/app/dataImport/log/import-log/import-log.less
View file @
c6777ae0
...
...
@@ -175,6 +175,7 @@
}
.dt-init-wrapper {
margin: 60px 0;
max-width: 99%;
height: calc(100% - 200px);
position: relative;
...
...
atms-web/src/main/webapp/app/vat/preview/vat-preview-certified-invoices-list/vat-preview-certified-invoices-list.ctrl.js
View file @
c6777ae0
...
...
@@ -280,27 +280,29 @@
enableSorting
:
false
,
enableColumnMenus
:
false
,
columnDefs
:
[
{
name
:
$translate
.
instant
(
'InvoiceNoCol'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.seqNo}}<span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceNoCol'
),
width
:
100
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.seqNo}}<span></div>'
},
// { name: $translate.instant('InvoiceQJ'), width: '8%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.periodID}}<span></div>' },
{
name
:
$translate
.
instant
(
'InvoiceCode'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceCode}}<span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceNum'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceNum}}</span></div>'
},
{
name
:
$translate
.
instant
(
'BillingDate'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.billingDate | date:"yyyy-MM-dd"}}</span></div>'
},
{
name
:
$translate
.
instant
(
'SalesTaxNum'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.salesTaxNum}}</span></div>'
},
{
name
:
$translate
.
instant
(
'SalesTaxName'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.salespersonName}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceCode'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceCode}}<span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceNum'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceNum}}</span></div>'
},
{
name
:
$translate
.
instant
(
'BillingDate'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.billingDate | date:"yyyy-MM-dd"}}</span></div>'
},
{
name
:
$translate
.
instant
(
'SalesTaxNum'
),
width
:
300
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.salesTaxNum}}</span></div>'
},
{
name
:
$translate
.
instant
(
'SalesTaxName'
),
width
:
300
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.salespersonName}}</span></div>'
},
{
name
:
$translate
.
instant
(
'Amount'
),
width
:
200
,
headerCellClass
:
'rightHeader'
,
cellTemplate
:
'<div class="ui-grid-cell-contents" style="text-align: right"><span>{{row.entity.amount | number:2}}</span></div>'
},
{
name
:
$translate
.
instant
(
'TaxAmount'
),
width
:
200
,
headerCellClass
:
'rightHeader'
,
cellTemplate
:
'<div class="ui-grid-cell-contents" style="text-align: right"><span>{{row.entity.taxAmount | number:2}}</span></div>'
},
{
name
:
$translate
.
instant
(
'VerificationMethod'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.verificationMethod}}</span></div>'
},
{
name
:
$translate
.
instant
(
'ConfirmDate'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.certifiedDate | date:"yyyy-MM-dd"}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceType'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceType}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceStatus'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceStatus}}</span></div>'
}
{
name
:
$translate
.
instant
(
'VerificationMethod'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.verificationMethod}}</span></div>'
},
{
name
:
$translate
.
instant
(
'ConfirmDate'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.certifiedDate | date:"yyyy-MM-dd"}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceType'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceType}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceStatus'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceStatus}}</span></div>'
}
]
};
...
...
atms-web/src/main/webapp/app/vat/preview/vat-preview-invoice-record/vat-preview-invoice-record.ctrl.js
View file @
c6777ae0
...
...
@@ -294,12 +294,12 @@
enableSorting
:
false
,
enableColumnMenus
:
false
,
columnDefs
:
[
{
name
:
$translate
.
instant
(
'VatInvoiceRecordNoCol'
),
width
:
2
00
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.seqNo}}<span></div>'
},
{
name
:
$translate
.
instant
(
'VatInvoiceRecordNoCol'
),
width
:
1
00
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.seqNo}}<span></div>'
},
// { name: $translate.instant('InvoiceQJ'), width: '8%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.periodID}}<span></div>' },
{
name
:
$translate
.
instant
(
'BillingBody'
),
width
:
2
00
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.billingBody }}<span></div>'
},
{
name
:
$translate
.
instant
(
'BillingBody'
),
width
:
3
00
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.billingBody }}<span></div>'
},
{
name
:
$translate
.
instant
(
'CustomerCompanyName'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span title="{{row.entity.fpdm}}">{{row.entity.customerCompanyName}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceType'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span title="{{row.entity.fphm}}">{{row.entity.invoiceType}}</span></div>'
},
{
name
:
$translate
.
instant
(
'BillingContent'
),
width
:
2
00
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span title="{{row.entity.xfsh}}">{{row.entity.billingContent}}</span></div>'
},
{
name
:
$translate
.
instant
(
'BillingContent'
),
width
:
3
00
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span title="{{row.entity.xfsh}}">{{row.entity.billingContent}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceAmount'
),
headerCellClass
:
'rightHeader'
,
...
...
@@ -312,13 +312,13 @@
{
name
:
$translate
.
instant
(
'ContractAmount'
),
headerCellClass
:
'rightHeader'
,
width
:
20
0
,
width
:
16
0
,
cellTemplate
:
'<div class="ui-grid-cell-contents" style="text-align: right"><span>{{row.entity.contractAmount | number:2}}</span></div>'
},
{
name
:
$translate
.
instant
(
'Department'
),
width
:
20
0
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.department}}</span></div>'
},
{
name
:
$translate
.
instant
(
'Department'
),
width
:
34
0
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.department}}</span></div>'
},
{
name
:
$translate
.
instant
(
'ApplicationDate'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.applicationDate| date:"yyyy-MM-dd"}}</span></div>'
},
{
name
:
$translate
.
instant
(
'BillingDate'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.billingDate| date:"yyyy-MM-dd"}}</span></div>'
},
{
name
:
$translate
.
instant
(
'BillingMonth'
),
width
:
2
00
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.billingMonth| date:"MM"}}</span></div>'
},
{
name
:
$translate
.
instant
(
'BillingMonth'
),
width
:
1
00
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.billingMonth| date:"MM"}}</span></div>'
},
{
name
:
$translate
.
instant
(
'invoiceCode'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceCode}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceNum'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceNum}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoicePaperNum'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.invoicesAmount}}</span></div>'
},
...
...
atms-web/src/main/webapp/app/vat/preview/vat-preview-red-letter-info-tab/vat-preview-red-letter-info-tab.ctrl.js
View file @
c6777ae0
...
...
@@ -294,27 +294,36 @@
enableSorting
:
false
,
enableColumnMenus
:
false
,
columnDefs
:
[
{
name
:
$translate
.
instant
(
'SubjectNum'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.subjectNum}}<span></div>'
},
{
name
:
$translate
.
instant
(
'SubjectNum'
),
width
:
150
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.subjectNum}}<span></div>'
},
// { name: $translate.instant('InvoiceQJ'), width: '8%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.periodID}}<span></div>' },
{
name
:
$translate
.
instant
(
'SubjectName'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.subjectName}}<span></div>'
},
{
name
:
$translate
.
instant
(
'RedLetterInvoiceInfoTableNum'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.redLetterInvoiceInfoTableNum}}</span></div>'
},
{
name
:
$translate
.
instant
(
'FillInDate'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span title="{{row.entity.fphm}}">{{row.entity.fillInDate | date:"yyyy-MM-dd"}}</span></div>'
},
{
name
:
$translate
.
instant
(
'RedLetterInfoSalesTaxNum'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span title="{{row.entity.xfsh}}">{{row.entity.salesTaxNumber}}</span></div>'
},
{
name
:
$translate
.
instant
(
'SalespersonName'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span title="{{row.entity.fplx}}">{{row.entity.salespersonName}}</span></div>'
},
{
name
:
$translate
.
instant
(
'SubjectName'
),
width
:
300
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.subjectName}}<span></div>'
},
{
name
:
$translate
.
instant
(
'RedLetterInvoiceInfoTableNum'
),
width
:
300
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.redLetterInvoiceInfoTableNum}}</span></div>'
},
{
name
:
$translate
.
instant
(
'FillInDate'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span title="{{row.entity.fphm}}">{{row.entity.fillInDate | date:"yyyy-MM-dd"}}</span></div>'
},
{
name
:
$translate
.
instant
(
'RedLetterInfoSalesTaxNum'
),
width
:
300
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span title="{{row.entity.xfsh}}">{{row.entity.salesTaxNumber}}</span></div>'
},
{
name
:
$translate
.
instant
(
'SalespersonName'
),
width
:
300
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span title="{{row.entity.fplx}}">{{row.entity.salespersonName}}</span></div>'
},
{
name
:
$translate
.
instant
(
'RedLetterInfoTotalAmount'
),
width
:
200
,
headerCellClass
:
'rightHeader'
,
cellTemplate
:
'<div class="ui-grid-cell-contents right"><span style="float:right">{{row.entity.totalAmount | number:2}}</span></div>'
},
{
name
:
$translate
.
instant
(
'RedLetterInfoTotalTaxAmount'
),
name
:
$translate
.
instant
(
'RedLetterInfoTotalTaxAmount'
),
width
:
200
,
headerCellClass
:
'rightHeader'
,
cellTemplate
:
'<div class="ui-grid-cell-contents right"><span style="float:right">{{row.entity.totalTaxAmount | number:2}}</span></div>'
},
{
name
:
$translate
.
instant
(
'ApplicationSelectionDescription'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.applicationDescription}}</span></div>'
},
{
name
:
$translate
.
instant
(
'ApplicantsManager'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.applicantManager }}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceCode'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceCode}}</span></div>'
},
{
name
:
$translate
.
instant
(
'RedLetterInfoInvoiceNum'
),
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceNumber}}</span></div>'
}
{
name
:
$translate
.
instant
(
'ApplicationSelectionDescription'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.applicationDescription}}</span></div>'
},
{
name
:
$translate
.
instant
(
'ApplicantsManager'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.applicantManager }}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceCode'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceCode}}</span></div>'
},
{
name
:
$translate
.
instant
(
'RedLetterInfoInvoiceNum'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceNumber}}</span></div>'
}
]
};
...
...
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