Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
15438b20
提交
15438b20
authored
11月 01, 2024
作者:
马路路
1
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v30.6_order_quote_20241022' into test_jdk17
上级
41a5a816
9e26f17c
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
28 行增加
和
13 行删除
+28
-13
OrderChildBrokerMqHandlerServiceImpl.java
...ice/impl/broker/OrderChildBrokerMqHandlerServiceImpl.java
+25
-1
SettlementDriverDetailServiceImpl.java
...ervice/impl/settle/SettlementDriverDetailServiceImpl.java
+1
-5
SettlementOwnerDetailServiceImpl.java
...service/impl/settle/SettlementOwnerDetailServiceImpl.java
+2
-7
没有找到文件。
clx-performance-web/src/main/java/com/clx/performance/service/impl/broker/OrderChildBrokerMqHandlerServiceImpl.java
浏览文件 @
15438b20
package
com
.
clx
.
performance
.
service
.
impl
.
broker
;
import
com.clx.order.enums.InvoicingCompanyEnum
;
import
com.clx.order.enums.QuotationEnum
;
import
com.clx.order.feign.InvoicingCompanyFeign
;
import
com.clx.order.feign.OrderFeign
;
...
...
@@ -75,6 +76,8 @@ public class OrderChildBrokerMqHandlerServiceImpl implements OrderChildBrokerMqH
try
{
doOrderChildSync
(
mq
);
// 同步-无车承运成功后,更新开票标识为普通单
updateInvoiceTypeByChildNo
(
mq
.
getChildNo
());
}
catch
(
Exception
e
){
log
.
info
(
"无车承运-运单同步 失败,msg:{}"
,
ExceptionUtils
.
getStackTrace
(
e
));
...
...
@@ -199,9 +202,30 @@ public class OrderChildBrokerMqHandlerServiceImpl implements OrderChildBrokerMqH
// 调用开票配置接口
Integer
invoiceConfigType
=
invoicingCompanyFeign
.
getInvoicingConfigTypeByOrderNo
(
orderNo
).
getData
();
log
.
info
(
"notInvoiceConfigType invoiceConfigType:{}"
,
invoiceConfigType
);
// 若开票配置为
否
// 若开票配置为
是
return
Objects
.
nonNull
(
invoiceConfigType
)
&&
Objects
.
equals
(
invoiceConfigType
,
QuotationEnum
.
InvoicingConfigType
.
YES
.
getCode
());
}
/**
* 更新当前运单号,更新开票标识为普通单
*/
public
void
updateInvoiceTypeByChildNo
(
String
childNo
)
{
// 获取货主详情
SettlementOwnerDetail
settlementOwnerDetail
=
settlementOwnerDetailDao
.
getByChildNo
(
childNo
).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
// 获取车主详情
SettlementDriverDetail
settlementDriverDetail
=
settlementDriverDetailDao
.
getByChildNo
(
childNo
).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
// 开票配置为否时,更新开票标识为普通单
if
(!
this
.
invoiceConfigType
(
settlementOwnerDetail
.
getOrderNo
()))
{
// 货主更新开票标识
settlementOwnerDetail
.
setInvoiceType
(
InvoicingCompanyEnum
.
RiskProcessType
.
AUTO
.
getCode
());
settlementOwnerDetailDao
.
updateEntityByKey
(
settlementOwnerDetail
);
// 车主更新开票标识
settlementDriverDetail
.
setInvoiceType
(
InvoicingCompanyEnum
.
RiskProcessType
.
AUTO
.
getCode
());
settlementDriverDetailDao
.
updateEntityByKey
(
settlementDriverDetail
);
}
}
}
clx-performance-web/src/main/java/com/clx/performance/service/impl/settle/SettlementDriverDetailServiceImpl.java
浏览文件 @
15438b20
...
...
@@ -89,11 +89,7 @@ public class SettlementDriverDetailServiceImpl implements SettlementDriverDetai
// 开票配置
Integer
invoiceConfigType
=
invoicingCompanyService
.
getInvoicingConfigTypeByOrderNo
(
orderChild
.
getOrderNo
());
settlementDriverDetail
.
setInvoiceConfigType
(
invoiceConfigType
);
// 若开票配置为否,设置开票标识为普通单
if
(
Objects
.
nonNull
(
invoiceConfigType
)
&&
Objects
.
equals
(
invoiceConfigType
,
InvoicingCompanyEnum
.
YesAndNo
.
NO
.
getCode
()))
{
// 开票标识
settlementDriverDetail
.
setInvoiceType
(
InvoicingCompanyEnum
.
RiskProcessType
.
AUTO
.
getCode
());
}
else
if
(
Objects
.
nonNull
(
invoiceConfigType
)
&&
Objects
.
equals
(
invoiceConfigType
,
InvoicingCompanyEnum
.
YesAndNo
.
YES
.
getCode
()))
{
if
(
Objects
.
nonNull
(
invoiceConfigType
)
&&
Objects
.
equals
(
invoiceConfigType
,
InvoicingCompanyEnum
.
YesAndNo
.
YES
.
getCode
()))
{
//设置开票公司信息
settlementDriverDetail
.
setInvoicingCompanyId
(
orderChild
.
getInvoicingCompanyId
());
settlementDriverDetail
.
setInvoicingCompanyShorterName
(
orderChild
.
getInvoicingCompanyShorterName
());
...
...
clx-performance-web/src/main/java/com/clx/performance/service/impl/settle/SettlementOwnerDetailServiceImpl.java
浏览文件 @
15438b20
...
...
@@ -161,13 +161,8 @@ public class SettlementOwnerDetailServiceImpl implements SettlementOwnerDetailS
Integer
invoicingConfigType
=
invoicingCompanyService
.
getInvoicingConfigTypeByOrderNo
(
orderChild
.
getOrderNo
());
settlementOwnerDetail
.
setInvoiceConfigType
(
invoicingConfigType
);
log
.
info
(
"saveSettlementDetail invoicingConfigType:{}"
,
invoicingConfigType
);
// 若开票配置为否,设置开票标识为普通单
if
(
Objects
.
nonNull
(
invoicingConfigType
)
&&
Objects
.
equals
(
invoicingConfigType
,
InvoicingCompanyEnum
.
YesAndNo
.
NO
.
getCode
()))
{
// 赋值开票标识为普通单
settlementOwnerDetail
.
setInvoiceType
(
InvoicingCompanyEnum
.
RiskProcessType
.
AUTO
.
getCode
());
log
.
info
(
"settlementOwnerDetail getInvoiceType:{}"
,
settlementOwnerDetail
.
getInvoiceType
());
// 若开票配置非空,且为是,则开票公司信息,开票标识为空(由后续封控系统处理)
}
else
if
(
Objects
.
nonNull
(
invoicingConfigType
)
&&
Objects
.
equals
(
invoicingConfigType
,
InvoicingCompanyEnum
.
YesAndNo
.
YES
.
getCode
()))
{
// 若开票配置非空,且为是,则开票公司信息,开票标识为空(由后续封控系统处理)
if
(
Objects
.
nonNull
(
invoicingConfigType
)
&&
Objects
.
equals
(
invoicingConfigType
,
InvoicingCompanyEnum
.
YesAndNo
.
YES
.
getCode
()))
{
//设置开票公司信息
settlementOwnerDetail
.
setInvoicingCompanyId
(
orderChild
.
getInvoicingCompanyId
());
settlementOwnerDetail
.
setInvoicingCompanyShorterName
(
orderChild
.
getInvoicingCompanyShorterName
());
...
...
马路路
@malulu
被提及 commit
6adb6c52
·
11月 12, 2024
被提及 commit
6adb6c52
被提及 commit 6adb6c5250f58ec152243f93a03aee9698615e44
切换提交列表
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论