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
187fba43
Commit
187fba43
authored
Dec 03, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEV] add get detail for xxkp
parent
214352f2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
10 deletions
+19
-10
OutputInvoiceController.java
.../pwc/taxtech/atms/controller/OutputInvoiceController.java
+2
-2
OutputInvoiceServiceImpl.java
...xtech/atms/vat/service/impl/OutputInvoiceServiceImpl.java
+14
-5
vatPreviewService.js
...c/main/webapp/app/common/vatservices/vatPreviewService.js
+2
-2
vat-preview-outputoff-invoice.ctrl.js
...w-outputoff-invoice/vat-preview-outputoff-invoice.ctrl.js
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/OutputInvoiceController.java
View file @
187fba43
...
...
@@ -185,8 +185,8 @@ public class OutputInvoiceController {
}
@RequestMapping
(
value
=
"queryOutputInvoiceItemList/{invoiceId}"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
ResponseEntity
QueryOutputInvoiceItemList
(
@PathVariable
String
invoiceId
)
{
return
ResponseEntity
.
ok
(
outputInvoiceService
.
QueryOutputInvoiceItemList
(
invoiceId
));
public
ResponseEntity
QueryOutputInvoiceItemList
(
@PathVariable
String
invoiceId
,
@RequestParam
(
required
=
false
)
String
tag
)
{
return
ResponseEntity
.
ok
(
outputInvoiceService
.
QueryOutputInvoiceItemList
(
invoiceId
,
tag
));
}
private
String
GetExtension
(
String
file
)
{
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/OutputInvoiceServiceImpl.java
View file @
187fba43
...
...
@@ -466,13 +466,22 @@ public class OutputInvoiceServiceImpl {
}
}
public
List
<
OutputInvoiceDetail
>
QueryOutputInvoiceItemList
(
String
invoiceId
)
{
OutputInvoiceExample
example
=
new
OutputInvoiceExample
();
example
.
createCriteria
().
andIDEqualTo
(
invoiceId
);
OutputInvoice
outputInvoice
=
outputInvoiceMapper
.
selectByExample
(
example
).
get
(
0
);
public
List
<
OutputInvoiceDetail
>
QueryOutputInvoiceItemList
(
String
invoiceId
,
String
tag
)
{
String
fpqqlsh
;
if
(
"off"
.
equals
(
tag
)){
OutputFpxxtbExample
example
=
new
OutputFpxxtbExample
();
example
.
createCriteria
().
andIDEqualTo
(
invoiceId
);
OutputFpxxtb
outputInvoice
=
outputFpxxtbMapper
.
selectByExample
(
example
).
get
(
0
);
fpqqlsh
=
outputInvoice
.
getFPQQLSH
();
}
else
{
OutputInvoiceExample
example
=
new
OutputInvoiceExample
();
example
.
createCriteria
().
andIDEqualTo
(
invoiceId
);
OutputInvoice
outputInvoice
=
outputInvoiceMapper
.
selectByExample
(
example
).
get
(
0
);
fpqqlsh
=
outputInvoice
.
getFPQQLSH
();
}
OutputInvoiceDetailExample
detailExample
=
new
OutputInvoiceDetailExample
();
detailExample
.
createCriteria
().
andFPQQLSHEqualTo
(
outputInvoice
.
getFPQQLSH
()
);
detailExample
.
createCriteria
().
andFPQQLSHEqualTo
(
fpqqlsh
);
List
<
OutputInvoiceDetail
>
result
=
outputInvoiceDetailMapper
.
selectByExample
(
detailExample
);
return
result
;
}
...
...
atms-web/src/main/webapp/app/common/vatservices/vatPreviewService.js
View file @
187fba43
...
...
@@ -45,8 +45,8 @@
},
apiConfig
.
createVat
());
},
queryOutputInvoiceItemList
:
function
(
invoiceID
)
{
return
$http
.
get
(
'/outputInvoiceImport/queryOutputInvoiceItemList/'
+
invoiceID
,
apiConfig
.
createVat
());
queryOutputInvoiceItemList
:
function
(
invoiceID
,
tag
)
{
return
$http
.
get
(
'/outputInvoiceImport/queryOutputInvoiceItemList/'
+
invoiceID
+
"?tag="
tag
,
apiConfig
.
createVat
());
},
getExportOutputInvoiceList
:
function
(
param
)
{
...
...
atms-web/src/main/webapp/app/vat/preview/vat-preview-outputoff-invoice/vat-preview-outputoff-invoice.ctrl.js
View file @
187fba43
...
...
@@ -637,7 +637,7 @@
columnDefs
:
$scope
.
subGridOptionsColumnDefs
,
};
//获取子table数据
vatPreviewService
.
queryOutputInvoiceItemList
(
row
.
entity
.
id
).
success
(
function
(
data
)
{
vatPreviewService
.
queryOutputInvoiceItemList
(
row
.
entity
.
id
,
'off'
).
success
(
function
(
data
)
{
if
(
data
)
{
data
.
forEach
(
function
(
v
)
{
v
.
dj
=
PWC
.
round
(
v
.
dj
,
2
);
...
...
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