Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
a67c9b91
Commit
a67c9b91
authored
Sep 18, 2021
by
zhaoliang.huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2021年9月18日-开票历史列表接口+详情接口+发票所含订单接口-黄兆良
parent
dd250592
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
+13
-1
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+13
-1
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
a67c9b91
...
...
@@ -4383,7 +4383,7 @@ public class OrderServiceImpl implements Orderservice {
queryInvoiceReq
.
setEndTime
(
new
Date
());
//如果前端传null,聚合当前时间
}
else
{
queryInvoiceReq
.
setStartTime
(
DateUtil
.
convert2Date
(
queryInvoiceReq
.
getSelectMonth
()+
"-01"
,
DateUtil
.
FORMAT_YMD
));
//yyyy-MM拼接-01
queryInvoiceReq
.
setEndTime
((
DateUtil
.
addMonths
(
DateUtil
.
convert2Date
(
queryInvoiceReq
.
getSelectMonth
()+
"
:
01"
,
DateUtil
.
FORMAT_YMD
),
1
)));
////yyyy-(MM+1)拼接下月-01
queryInvoiceReq
.
setEndTime
((
DateUtil
.
addMonths
(
DateUtil
.
convert2Date
(
queryInvoiceReq
.
getSelectMonth
()+
"
-
01"
,
DateUtil
.
FORMAT_YMD
),
1
)));
////yyyy-(MM+1)拼接下月-01
}
ApiLog
.
printLog
(
"queryInvoiceListqueryInvoiceReq2"
,
JSON
.
toJSONString
(
queryInvoiceReq
),
null
,
null
);
QueryInvoiceRepDto
queryInvoiceRepDto
=
orderClient
.
queryInvoiceList
(
queryInvoiceReq
);
...
...
@@ -4391,6 +4391,18 @@ public class OrderServiceImpl implements Orderservice {
if
(
queryInvoiceRepDto
==
null
||
!
Objects
.
equals
(
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
,
queryInvoiceRepDto
.
getCode
())){
return
ResponseUtil
.
error
(
ResponseResult
.
QUERY_INVOICE_ERR
);
}
if
(
queryInvoiceRepDto
.
getResult
()
!=
null
){
for
(
QueryInvoiceRep
queryInvoiceRep
:
queryInvoiceRepDto
.
getResult
().
getItemList
())
{
String
scanUrl
=
queryInvoiceRep
.
getInvoiceUrl
();
if
(
scanUrl
.
startsWith
(
"<![CDATA["
)){
scanUrl
=
scanUrl
.
substring
(
9
,
scanUrl
.
length
());
}
if
(
scanUrl
.
endsWith
(
"]]>"
)){
scanUrl
=
scanUrl
.
substring
(
0
,
scanUrl
.
length
()-
3
);
}
queryInvoiceRep
.
setInvoiceUrl
(
scanUrl
);
}
}
return
ResponseUtil
.
success
(
queryInvoiceRepDto
.
getResult
());
}
}
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