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
34549cce
Commit
34549cce
authored
Dec 03, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEV] add xxkp xxkp
parent
3329163f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
124 additions
and
29 deletions
+124
-29
OutputInvoiceServiceImpl.java
...xtech/atms/vat/service/impl/OutputInvoiceServiceImpl.java
+78
-26
vatGeneratorConfig.xml
atms-dao/etc/generator-oracle/vatGeneratorConfig.xml
+1
-1
QueryOutputDto.java
...rc/main/java/pwc/taxtech/atms/vat/dpo/QueryOutputDto.java
+9
-0
OutputFpxxtb.java
...c/main/java/pwc/taxtech/atms/vat/entity/OutputFpxxtb.java
+0
-0
OutputFpxxtbExample.java
...java/pwc/taxtech/atms/vat/entity/OutputFpxxtbExample.java
+0
-0
OutputFpxxtbMapper.xml
...resources/pwc/taxtech/atms/invoice/OutputFpxxtbMapper.xml
+0
-0
vat-report-view.ctrl.js
...p/common/controls/vat-report-view/vat-report-view.ctrl.js
+28
-0
vat-report-view.html
.../app/common/controls/vat-report-view/vat-report-view.html
+2
-0
vatPreviewService.js
...c/main/webapp/app/common/vatservices/vatPreviewService.js
+2
-0
vat-preview-output-invoice.ctrl.js
...preview-output-invoice/vat-preview-output-invoice.ctrl.js
+2
-1
vat-preview-outputoff-invoice.ctrl.js
...w-outputoff-invoice/vat-preview-outputoff-invoice.ctrl.js
+2
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/OutputInvoiceServiceImpl.java
View file @
34549cce
...
...
@@ -21,6 +21,7 @@ import org.springframework.stereotype.Service;
import
pwc.taxtech.atms.common.CommonUtils
;
import
pwc.taxtech.atms.common.util.DateUtils
;
import
pwc.taxtech.atms.constant.enums.EnumTbImportType
;
import
pwc.taxtech.atms.dao.DimensionValueOrgMapper
;
import
pwc.taxtech.atms.dao.OrganizationMapper
;
import
pwc.taxtech.atms.dao.ProjectMapper
;
import
pwc.taxtech.atms.dpo.PagingResultDto
;
...
...
@@ -30,6 +31,7 @@ import pwc.taxtech.atms.dto.vatdto.QueryEvidenceDto;
import
pwc.taxtech.atms.entity.Organization
;
import
pwc.taxtech.atms.entity.OrganizationExample
;
import
pwc.taxtech.atms.entity.Project
;
import
pwc.taxtech.atms.invoice.OutputFpxxtbMapper
;
import
pwc.taxtech.atms.invoice.OutputInvoiceDetailMapper
;
import
pwc.taxtech.atms.invoice.OutputInvoiceMapper
;
import
pwc.taxtech.atms.service.impl.Message
;
...
...
@@ -72,24 +74,50 @@ public class OutputInvoiceServiceImpl {
private
OrganizationMapper
organizationMapper
;
@Autowired
private
OutputInvoiceDetailMapper
outputInvoiceDetailMapper
;
@Autowired
private
OutputFpxxtbMapper
outputFpxxtbMapper
;
public
List
<
OutputInvoice
>
getOutputInvoice
(
QueryOutputDto
queryDto
,
String
projectId
)
{
Project
project
=
projectMapper
.
selectByPrimaryKey
(
projectId
);
Organization
organization
=
organizationMapper
.
selectByPrimaryKey
(
project
.
getOrganizationId
());
List
<
OutputInvoice
>
outputInvoices
;
if
(
"off"
.
equals
(
queryDto
.
getTag
())){
OutputFpxxtbExample
outputFpxxtbExample
=
new
OutputFpxxtbExample
();
if
(
organization
.
getTaxPayerNumber
()
==
null
)
{
outputFpxxtbExample
.
createCriteria
().
andXFSHIsNull
().
andKPRQBetween
(
DateUtils
.
getPeriodBegin
(
project
.
getYear
(),
queryDto
.
getPeriodStart
()),
DateUtils
.
getPeriodEnd
(
project
.
getYear
(),
queryDto
.
getPeriodEnd
()))
.
andFPZTNotEqualTo
(
"1"
);
}
else
{
outputFpxxtbExample
.
createCriteria
().
andXFSHEqualTo
(
organization
.
getTaxPayerNumber
()).
andKPRQBetween
(
DateUtils
.
getPeriodBegin
(
project
.
getYear
(),
queryDto
.
getPeriodStart
()),
DateUtils
.
getPeriodEnd
(
project
.
getYear
(),
queryDto
.
getPeriodEnd
()))
.
andFPZTNotEqualTo
(
"1"
);
}
List
<
OutputFpxxtb
>
outputFpxxtbs
=
outputFpxxtbMapper
.
selectByExample
(
outputFpxxtbExample
);
outputInvoices
=
new
ArrayList
<>(
outputFpxxtbs
.
size
());
outputFpxxtbs
.
forEach
(
m
->{
OutputInvoice
outputInvoice
=
new
OutputInvoice
();
outputInvoices
.
add
(
CommonUtils
.
copyProperties
(
m
,
outputInvoice
));
});
}
else
{
OutputInvoiceExample
outputInvoiceExample
=
new
OutputInvoiceExample
();
if
(
organization
.
getTaxPayerNumber
()
==
null
)
{
outputInvoiceExample
.
createCriteria
().
andXFSHIsNull
().
andKPZTEqualTo
(
OUTPUT_KPZT_YES
).
andKPRQBetween
(
DateUtils
.
getPeriodBegin
(
project
.
getYear
(),
queryDto
.
getPeriodStart
()),
DateUtils
.
getPeriodEnd
(
project
.
getYear
(),
queryDto
.
getPeriodEnd
()))
.
andFPZTNotEqualTo
(
"1"
);
}
else
{
outputInvoiceExample
.
createCriteria
().
andXFSHEqualTo
(
organization
.
getTaxPayerNumber
()).
andKPZTEqualTo
(
OUTPUT_KPZT_YES
).
andKPRQBetween
(
DateUtils
.
getPeriodBegin
(
project
.
getYear
(),
queryDto
.
getPeriodStart
()),
DateUtils
.
getPeriodEnd
(
project
.
getYear
(),
queryDto
.
getPeriodEnd
()))
.
andFPZTNotEqualTo
(
"1"
);
}
OutputInvoiceExample
outputInvoiceExample
=
new
OutputInvoiceExample
();
if
(
organization
.
getTaxPayerNumber
()
==
null
)
{
outputInvoiceExample
.
createCriteria
().
andXFSHIsNull
().
andKPZTEqualTo
(
OUTPUT_KPZT_YES
).
andKPRQBetween
(
DateUtils
.
getPeriodBegin
(
project
.
getYear
(),
queryDto
.
getPeriodStart
()),
DateUtils
.
getPeriodEnd
(
project
.
getYear
(),
queryDto
.
getPeriodEnd
()))
.
andFPZTNotEqualTo
(
"1"
);
}
else
{
outputInvoiceExample
.
createCriteria
().
andXFSHEqualTo
(
organization
.
getTaxPayerNumber
()).
andKPZTEqualTo
(
OUTPUT_KPZT_YES
).
andKPRQBetween
(
DateUtils
.
getPeriodBegin
(
project
.
getYear
(),
queryDto
.
getPeriodStart
()),
DateUtils
.
getPeriodEnd
(
project
.
getYear
(),
queryDto
.
getPeriodEnd
()))
.
andFPZTNotEqualTo
(
"1"
);
outputInvoices
=
outputInvoiceMapper
.
selectByExample
(
outputInvoiceExample
);
}
return
outputInvoiceMapper
.
selectByExample
(
outputInvoiceExample
);
return
outputInvoices
;
}
public
List
<
OutputInvoice
>
queryOutputInvoiceAllList
(
QueryOutputDto
queryDto
,
String
projectId
)
{
...
...
@@ -104,24 +132,48 @@ public class OutputInvoiceServiceImpl {
}
public
PageInfo
<
OutputInvoice
>
queryOutputInvoiceList
(
QueryOutputDto
queryDto
,
String
projectId
)
{
Project
project
=
projectMapper
.
selectByPrimaryKey
(
projectId
);
Organization
organization
=
organizationMapper
.
selectByPrimaryKey
(
project
.
getOrganizationId
());
OutputInvoiceExample
outputInvoiceExample
=
new
OutputInvoiceExample
();
if
(
organization
.
getTaxPayerNumber
()
==
null
)
{
outputInvoiceExample
.
createCriteria
().
andXFSHIsNull
().
andKPZTEqualTo
(
OUTPUT_KPZT_YES
).
andKPRQBetween
(
DateUtils
.
getPeriodBegin
(
project
.
getYear
(),
queryDto
.
getPeriodStart
()),
DateUtils
.
getPeriodEnd
(
project
.
getYear
(),
queryDto
.
getPeriodEnd
()))
.
andFPZTNotEqualTo
(
"1"
);
}
else
{
outputInvoiceExample
.
createCriteria
().
andXFSHEqualTo
(
organization
.
getTaxPayerNumber
()).
andKPZTEqualTo
(
OUTPUT_KPZT_YES
).
andKPRQBetween
(
DateUtils
.
getPeriodBegin
(
project
.
getYear
(),
queryDto
.
getPeriodStart
()),
DateUtils
.
getPeriodEnd
(
project
.
getYear
(),
queryDto
.
getPeriodEnd
()))
.
andFPZTNotEqualTo
(
"1"
);
List
<
OutputInvoice
>
invoices
;
if
(
"off"
.
equals
(
queryDto
.
getTag
())){
OutputFpxxtbExample
outputFpxxtbExample
=
new
OutputFpxxtbExample
();
if
(
organization
.
getTaxPayerNumber
()
==
null
)
{
outputFpxxtbExample
.
createCriteria
().
andXFSHIsNull
().
andKPRQBetween
(
DateUtils
.
getPeriodBegin
(
project
.
getYear
(),
queryDto
.
getPeriodStart
()),
DateUtils
.
getPeriodEnd
(
project
.
getYear
(),
queryDto
.
getPeriodEnd
()))
.
andFPZTNotEqualTo
(
"1"
);
}
else
{
outputFpxxtbExample
.
createCriteria
().
andXFSHEqualTo
(
organization
.
getTaxPayerNumber
()).
andKPRQBetween
(
DateUtils
.
getPeriodBegin
(
project
.
getYear
(),
queryDto
.
getPeriodStart
()),
DateUtils
.
getPeriodEnd
(
project
.
getYear
(),
queryDto
.
getPeriodEnd
()))
.
andFPZTNotEqualTo
(
"1"
);
}
PageHelper
.
startPage
(
queryDto
.
getPageInfo
().
getPageIndex
(),
queryDto
.
getPageInfo
().
getPageSize
());
List
<
OutputFpxxtb
>
fpxxtbs
=
outputFpxxtbMapper
.
selectByExample
(
outputFpxxtbExample
);
invoices
=
new
ArrayList
<>(
fpxxtbs
.
size
());
fpxxtbs
.
forEach
(
m
->{
OutputInvoice
invoice
=
new
OutputInvoice
();
invoices
.
add
(
CommonUtils
.
copyProperties
(
m
,
invoice
));
});
}
else
{
OutputInvoiceExample
outputInvoiceExample
=
new
OutputInvoiceExample
();
if
(
organization
.
getTaxPayerNumber
()
==
null
)
{
outputInvoiceExample
.
createCriteria
().
andXFSHIsNull
().
andKPZTEqualTo
(
OUTPUT_KPZT_YES
).
andKPRQBetween
(
DateUtils
.
getPeriodBegin
(
project
.
getYear
(),
queryDto
.
getPeriodStart
()),
DateUtils
.
getPeriodEnd
(
project
.
getYear
(),
queryDto
.
getPeriodEnd
()))
.
andFPZTNotEqualTo
(
"1"
);
}
else
{
outputInvoiceExample
.
createCriteria
().
andXFSHEqualTo
(
organization
.
getTaxPayerNumber
()).
andKPZTEqualTo
(
OUTPUT_KPZT_YES
).
andKPRQBetween
(
DateUtils
.
getPeriodBegin
(
project
.
getYear
(),
queryDto
.
getPeriodStart
()),
DateUtils
.
getPeriodEnd
(
project
.
getYear
(),
queryDto
.
getPeriodEnd
()))
.
andFPZTNotEqualTo
(
"1"
);
}
PageHelper
.
startPage
(
queryDto
.
getPageInfo
().
getPageIndex
(),
queryDto
.
getPageInfo
().
getPageSize
());
invoices
=
outputInvoiceMapper
.
selectByExample
(
outputInvoiceExample
);
}
PageHelper
.
startPage
(
queryDto
.
getPageInfo
().
getPageIndex
(),
queryDto
.
getPageInfo
().
getPageSize
());
List
<
OutputInvoice
>
invoices
=
outputInvoiceMapper
.
selectByExample
(
outputInvoiceExample
);
DecimalFormat
df
=
new
DecimalFormat
(
"#,###.00"
);
invoices
.
stream
().
forEach
(
x
->
{
x
.
setHJJE
(
df
.
format
(
new
BigDecimal
(
x
.
getHJJE
())));
...
...
atms-dao/etc/generator-oracle/vatGeneratorConfig.xml
View file @
34549cce
...
...
@@ -258,7 +258,7 @@
<!--</table>-->
<table
tableName=
"OUTPUT_FPXXTB"
schema=
"pwc_invoice"
domainObjectName=
"OutputFpxxtb"
>
<property
name=
"useActualColumnNames"
value=
"
fals
e"
/>
<property
name=
"useActualColumnNames"
value=
"
tru
e"
/>
<property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/>
</table>
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/dpo/QueryOutputDto.java
View file @
34549cce
...
...
@@ -21,6 +21,7 @@ public class QueryOutputDto {
private
BigDecimal
amountEnd
;
private
BigDecimal
taxAmountStart
;
private
BigDecimal
taxAmountEnd
;
private
String
tag
;
public
PagingDto
getPageInfo
()
{
return
pageInfo
;
...
...
@@ -133,4 +134,12 @@ public class QueryOutputDto {
public
void
setTaxAmountEnd
(
BigDecimal
taxAmountEnd
)
{
this
.
taxAmountEnd
=
taxAmountEnd
;
}
public
String
getTag
()
{
return
tag
;
}
public
void
setTag
(
String
tag
)
{
this
.
tag
=
tag
;
}
}
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/OutputFpxxtb.java
View file @
34549cce
This diff is collapsed.
Click to expand it.
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/OutputFpxxtbExample.java
View file @
34549cce
This source diff could not be displayed because it is too large. You can
view the blob
instead.
atms-dao/src/main/resources/pwc/taxtech/atms/invoice/OutputFpxxtbMapper.xml
View file @
34549cce
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/common/controls/vat-report-view/vat-report-view.ctrl.js
View file @
34549cce
...
...
@@ -2668,6 +2668,34 @@
$scope
.
voucherFileName
=
evidence
.
fileName
;
$scope
.
voucherFileID
=
evidence
.
fileID
;
};
$scope
.
upLoadManual
=
function
(){
var
text
=
$
(
".li"
).
find
(
".active"
).
text
();
$log
.
debug
(
text
);
if
(
text
==
'海关专用缴款书'
||
text
==
'代扣代缴税收通用缴款书取数'
){
var
excelIo
=
new
GC
.
Spread
.
Excel
.
IO
();
var
excelFilePath
=
'resources/Excel/importExcel.xlsx'
;
var
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
'GET'
,
excelFilePath
,
true
);
xhr
.
responseType
=
'blob'
;
xhr
.
onload
=
function
(
e
)
{
if
(
this
.
status
==
200
)
{
// get binary data as a response
var
blob
=
this
.
response
;
// convert Excel to JSON
excelIo
.
open
(
blob
,
function
(
json
)
{
var
workbookObj
=
json
;
spread
.
fromJSON
(
workbookObj
);
},
function
(
e
)
{
// process error
alert
(
e
.
errorMessage
);
},
{});
}
};
}
else
{
SweetAlert
.
warning
(
"仅支持海关专用缴款书或代扣代缴税收通用缴款书取数"
);
}
};
/****************************************证据文件function Ended*************************************************/
/****************************************证据文件function Ended*************************************************/
/****************************************证据文件function Ended*************************************************/
...
...
atms-web/src/main/webapp/app/common/controls/vat-report-view/vat-report-view.html
View file @
34549cce
...
...
@@ -6,6 +6,8 @@
class=
"fa fa-floppy-o"
></i>
{{'报表提审'}}
</span>
<span
ng-if=
"!isBSPL"
ng-click=
"doApprove();"
><i
class=
"fa fa-floppy-o"
></i>
{{'报表审批'}}
</span>
<span
ng-if=
"!isBSPL"
ng-click=
"upLoadManual();"
><i
class=
"fa fa-floppy-o"
></i>
{{'上传手工数据'}}
</span>
<!--<span ng-if="!isBSPL" ng-click="saveReportCache();"><i-->
<!--class="fa fa-floppy-o"></i> {{'Save' | translate}}</span>-->
</div>
...
...
atms-web/src/main/webapp/app/common/vatservices/vatPreviewService.js
View file @
34549cce
...
...
@@ -21,6 +21,7 @@
AmountEnd
:
param
.
amountEnd
,
TaxAmountStart
:
param
.
taxAmountStart
,
TaxAmountEnd
:
param
.
taxAmountEnd
,
Tag
:
param
.
tag
,
},
apiConfig
.
createVat
());
},
...
...
@@ -40,6 +41,7 @@
AmountEnd
:
param
.
amountEnd
,
TaxAmountStart
:
param
.
taxAmountStart
,
TaxAmountEnd
:
param
.
taxAmountEnd
,
Tag
:
param
.
tag
,
},
apiConfig
.
createVat
());
},
...
...
atms-web/src/main/webapp/app/vat/preview/vat-preview-output-invoice/vat-preview-output-invoice.ctrl.js
View file @
34549cce
...
...
@@ -62,7 +62,8 @@
amountEnd
:
null
,
invoiceType
:
null
,
taxAmountStart
:
null
,
taxAmountEnd
:
null
taxAmountEnd
:
null
,
tag
:
null
};
$scope
.
queryParams
.
periodStart
=
vatSessionService
.
month
;
$scope
.
queryParams
.
periodEnd
=
vatSessionService
.
month
;
...
...
atms-web/src/main/webapp/app/vat/preview/vat-preview-outputoff-invoice/vat-preview-outputoff-invoice.ctrl.js
View file @
34549cce
...
...
@@ -410,7 +410,8 @@
amountEnd
:
null
,
invoiceType
:
null
,
taxAmountStart
:
null
,
taxAmountEnd
:
null
taxAmountEnd
:
null
,
tag
:
'off'
};
$scope
.
criteriaList
=
[];
$scope
.
queryParams
.
periodStart
=
startMonth
;
...
...
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