Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
bba495ef
提交
bba495ef
authored
10月 24, 2024
作者:
马路路
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
订单报价-货主运单计费-保存开票配置
上级
1bbc8f60
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
16 行增加
和
9 行删除
+16
-9
InvoicingCompanyService.java
...x/performance/extranal/order/InvoicingCompanyService.java
+1
-1
InvoicingCompanyServiceImpl.java
...ance/extranal/order/impl/InvoicingCompanyServiceImpl.java
+2
-2
SettlementOwnerDetailServiceImpl.java
...service/impl/settle/SettlementOwnerDetailServiceImpl.java
+13
-6
没有找到文件。
clx-performance-web/src/main/java/com/clx/performance/extranal/order/InvoicingCompanyService.java
浏览文件 @
bba495ef
...
@@ -9,6 +9,6 @@ public interface InvoicingCompanyService {
...
@@ -9,6 +9,6 @@ public interface InvoicingCompanyService {
InvoicingCompanyVO
getInvoicingCompanyByGroupCode
(
String
companyGroupCode
);
InvoicingCompanyVO
getInvoicingCompanyByGroupCode
(
String
companyGroupCode
);
Integer
getInvoicingConfigTypeByOrderNo
(
Integer
orderNo
);
Integer
getInvoicingConfigTypeByOrderNo
(
String
orderNo
);
}
}
clx-performance-web/src/main/java/com/clx/performance/extranal/order/impl/InvoicingCompanyServiceImpl.java
浏览文件 @
bba495ef
...
@@ -31,10 +31,10 @@ public class InvoicingCompanyServiceImpl implements InvoicingCompanyService {
...
@@ -31,10 +31,10 @@ public class InvoicingCompanyServiceImpl implements InvoicingCompanyService {
}
}
@Override
@Override
public
Integer
getInvoicingConfigTypeByOrderNo
(
Integer
orderNo
)
{
public
Integer
getInvoicingConfigTypeByOrderNo
(
String
orderNo
)
{
return
Optional
.
of
(
invoicingCompanyFeign
.
getInvoicingConfigTypeByOrderNo
(
orderNo
))
return
Optional
.
of
(
invoicingCompanyFeign
.
getInvoicingConfigTypeByOrderNo
(
orderNo
))
.
filter
(
Result:
:
succeed
)
.
filter
(
Result:
:
succeed
)
.
map
(
Result:
:
getData
)
.
map
(
Result:
:
getData
)
.
orNull
();
;
.
orNull
();
}
}
}
}
clx-performance-web/src/main/java/com/clx/performance/service/impl/settle/SettlementOwnerDetailServiceImpl.java
浏览文件 @
bba495ef
...
@@ -147,11 +147,6 @@ public class SettlementOwnerDetailServiceImpl implements SettlementOwnerDetailS
...
@@ -147,11 +147,6 @@ public class SettlementOwnerDetailServiceImpl implements SettlementOwnerDetailS
//借款抵扣金额初始化
//借款抵扣金额初始化
settlementOwnerDetail
.
setLoanFreight
(
BigDecimal
.
ZERO
);
settlementOwnerDetail
.
setLoanFreight
(
BigDecimal
.
ZERO
);
//设置开票公司信息
settlementOwnerDetail
.
setInvoicingCompanyId
(
orderChild
.
getInvoicingCompanyId
());
settlementOwnerDetail
.
setInvoicingCompanyShorterName
(
orderChild
.
getInvoicingCompanyShorterName
());
settlementOwnerDetail
.
setInvoicingCompanyGroupCode
(
orderChild
.
getInvoicingCompanyGroupCode
());
// 查询开票公司
// 查询开票公司
InvoicingCompanyVO
invoiceCompany
=
invoicingCompanyService
.
getInvoicingCompany
(
InvoicingCompanyVO
invoiceCompany
=
invoicingCompanyService
.
getInvoicingCompany
(
settlementOwnerDetail
.
getInvoicingCompanyId
()).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
settlementOwnerDetail
.
getInvoicingCompanyId
()).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
...
@@ -171,7 +166,19 @@ public class SettlementOwnerDetailServiceImpl implements SettlementOwnerDetailS
...
@@ -171,7 +166,19 @@ public class SettlementOwnerDetailServiceImpl implements SettlementOwnerDetailS
settlementCommonService
.
invoiceFreightCalc
(
orderChild
.
getSettlementWay
(),
settlementCommonService
.
invoiceFreightCalc
(
orderChild
.
getSettlementWay
(),
orderGoods
.
getInvoiceServiceFeeRate
(),
settlementOwnerDetail
));
orderGoods
.
getInvoiceServiceFeeRate
(),
settlementOwnerDetail
));
// 开票配置
// 开票配置
settlementOwnerDetail
.
setInvoiceConfigType
(
null
);
Integer
invoicingConfigType
=
invoicingCompanyService
.
getInvoicingConfigTypeByOrderNo
(
orderChild
.
getOrderNo
());
settlementOwnerDetail
.
setInvoiceConfigType
(
invoicingConfigType
);
// 若开票配置为否,设置开票标识为普通单
if
(
Objects
.
nonNull
(
invoicingConfigType
)
&&
Objects
.
equals
(
invoicingConfigType
,
InvoicingCompanyEnum
.
YesAndNo
.
NO
.
getCode
()))
{
// 赋值开票标识为普通单
settlementDriverDetail
.
setInvoiceType
(
InvoicingCompanyEnum
.
RiskProcessType
.
AUTO
.
getCode
());
// 若开票配置非空,且为是,则开票公司信息
}
else
if
(
Objects
.
nonNull
(
invoicingConfigType
)
&&
Objects
.
equals
(
invoicingConfigType
,
InvoicingCompanyEnum
.
YesAndNo
.
YES
.
getCode
()))
{
//设置开票公司信息
settlementOwnerDetail
.
setInvoicingCompanyId
(
orderChild
.
getInvoicingCompanyId
());
settlementOwnerDetail
.
setInvoicingCompanyShorterName
(
orderChild
.
getInvoicingCompanyShorterName
());
settlementOwnerDetail
.
setInvoicingCompanyGroupCode
(
orderChild
.
getInvoicingCompanyGroupCode
());
}
// 结算金额
// 结算金额
settlementOwnerDetail
.
setSettlementFreight
(
settlementOwnerDetail
.
setSettlementFreight
(
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论