Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lingxi-lxy-yanshou
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
后端-黄柯铭
lingxi-lxy-yanshou
Commits
08a5d7a5
Commit
08a5d7a5
authored
Sep 11, 2021
by
liao_ds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结算-开票-查询发票
parent
995eb79d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
IFeignService.java
...com/ssy/lingxi/settle/accounts/service/IFeignService.java
+1
-1
FeignServiceImpl.java
.../lingxi/settle/accounts/serviceimpl/FeignServiceImpl.java
+5
-5
MemberReceiptInvoiceServiceImpl.java
...accounts/serviceimpl/MemberReceiptInvoiceServiceImpl.java
+2
-2
No files found.
settle-accounts-service/src/main/java/com/ssy/lingxi/settle/accounts/service/IFeignService.java
View file @
08a5d7a5
...
...
@@ -56,5 +56,5 @@ public interface IFeignService {
* @param orderId
* @return
*/
Wrapper
<
OrderSettleAccountInvoiceFeignDetailVO
>
findSettleAccountInvoiceDetail
(
Long
orderId
);
Wrapper
<
OrderSettleAccountInvoiceFeignDetailVO
>
findSettleAccountInvoiceDetail
(
String
orderNo
);
}
settle-accounts-service/src/main/java/com/ssy/lingxi/settle/accounts/serviceimpl/FeignServiceImpl.java
View file @
08a5d7a5
...
...
@@ -4,7 +4,7 @@ import com.ssy.lingxi.common.response.Wrapper;
import
com.ssy.lingxi.message.api.feign.SystemMessageControllerFeign
;
import
com.ssy.lingxi.message.api.vo.request.SystemMessageRequest
;
import
com.ssy.lingxi.order.api.feign.OrderFeignService
;
import
com.ssy.lingxi.order.api.model.vo.request.Order
Id
FeignVO
;
import
com.ssy.lingxi.order.api.model.vo.request.Order
No
FeignVO
;
import
com.ssy.lingxi.order.api.model.vo.response.OrderSettleAccountInvoiceFeignDetailVO
;
import
com.ssy.lingxi.report.api.enums.OperateDataSourceEnum
;
import
com.ssy.lingxi.report.api.enums.SettleAccountReceivableOperateTypeEnum
;
...
...
@@ -138,11 +138,11 @@ public class FeignServiceImpl implements IFeignService {
}
@Override
public
Wrapper
<
OrderSettleAccountInvoiceFeignDetailVO
>
findSettleAccountInvoiceDetail
(
Long
orderId
)
{
Order
IdFeignVO
feignVO
=
new
OrderId
FeignVO
();
feignVO
.
setOrder
Id
(
orderId
);
public
Wrapper
<
OrderSettleAccountInvoiceFeignDetailVO
>
findSettleAccountInvoiceDetail
(
String
orderNo
)
{
Order
NoFeignVO
feignVO
=
new
OrderNo
FeignVO
();
feignVO
.
setOrder
No
(
orderNo
);
Wrapper
<
OrderSettleAccountInvoiceFeignDetailVO
>
feignResult
=
orderFeignService
.
findSettleAccountInvoiceDetail
(
feignVO
);
FeignLogUtils
.
printLog
(
"查询订单发票"
,
feignResult
,
order
Id
);
FeignLogUtils
.
printLog
(
"查询订单发票"
,
feignResult
,
order
No
);
return
feignResult
;
}
}
settle-accounts-service/src/main/java/com/ssy/lingxi/settle/accounts/serviceimpl/MemberReceiptInvoiceServiceImpl.java
View file @
08a5d7a5
...
...
@@ -280,7 +280,7 @@ public class MemberReceiptInvoiceServiceImpl implements IMemberReceiptInvoiceSer
}
// 如果单据类型为订单,则发票信息来源于订单发票信息栏
else
if
(
SettlementOrderTypeEnum
.
ORDER
.
getCode
().
equals
(
receiptInvoiceDO
.
getSettlementOrderType
()))
{
Wrapper
<
OrderSettleAccountInvoiceFeignDetailVO
>
wrapper
=
feignService
.
findSettleAccountInvoiceDetail
(
receiptInvoiceDO
.
get
DataId
());
Wrapper
<
OrderSettleAccountInvoiceFeignDetailVO
>
wrapper
=
feignService
.
findSettleAccountInvoiceDetail
(
receiptInvoiceDO
.
get
OrderNo
());
if
(
null
!=
wrapper
&&
ResponseCode
.
SUCCESS
.
getCode
()
==
wrapper
.
getCode
()
&&
null
!=
wrapper
.
getData
())
{
result
.
setKindName
(
InvoiceKindEnum
.
getMessage
(
wrapper
.
getData
().
getInvoiceKind
()));
result
.
setTypeName
(
InvoiceTypeEnum
.
getMessage
(
wrapper
.
getData
().
getInvoiceType
()));
...
...
@@ -388,7 +388,7 @@ public class MemberReceiptInvoiceServiceImpl implements IMemberReceiptInvoiceSer
MemberReceiptInvoiceProveDO
entity
=
invoiceProveRepository
.
findByReceiptInvoiceId
(
invoiceDO
.
getId
());
// 未开票则查询相关票据信息
if
(
entity
==
null
)
{
Wrapper
<
OrderSettleAccountInvoiceFeignDetailVO
>
wrapper
=
feignService
.
findSettleAccountInvoiceDetail
(
invoiceDO
.
get
DataId
());
Wrapper
<
OrderSettleAccountInvoiceFeignDetailVO
>
wrapper
=
feignService
.
findSettleAccountInvoiceDetail
(
invoiceDO
.
get
OrderNo
());
if
(
null
!=
wrapper
&&
ResponseCode
.
SUCCESS
.
getCode
()
==
wrapper
.
getCode
()
&&
null
!=
wrapper
.
getData
())
{
result
.
setKindName
(
InvoiceKindEnum
.
getMessage
(
wrapper
.
getData
().
getInvoiceKind
()));
result
.
setTypeName
(
InvoiceTypeEnum
.
getMessage
(
wrapper
.
getData
().
getInvoiceType
()));
...
...
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