Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
aabb0c98
提交
aabb0c98
authored
8月 12, 2024
作者:
艾庆国
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'refs/heads/v20.9_settlement_20240805' into test
上级
d27cd2c1
515f8586
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
22 行增加
和
11 行删除
+22
-11
TempSettlementController.java
...performance/controller/temp/TempSettlementController.java
+14
-3
BrokerServiceImpl.java
...x/performance/extranal/broker/impl/BrokerServiceImpl.java
+6
-6
BrokerDelayListener.java
.../clx/performance/listener/broker/BrokerDelayListener.java
+1
-1
SettlementDelayListener.java
.../performance/listener/settle/SettlementDelayListener.java
+1
-1
没有找到文件。
performance-web/src/main/java/com/clx/performance/controller/temp/TempSettlementController.java
浏览文件 @
aabb0c98
...
...
@@ -3,6 +3,7 @@ package com.clx.performance.controller.temp;
import
com.clx.performance.dao.OrderChildDao
;
import
com.clx.performance.listener.OrderChildSyncTransportListener
;
import
com.clx.performance.model.OrderChild
;
import
com.clx.performance.service.broker.OrderChildBrokerMqService
;
import
com.clx.performance.service.settle.SettlementMqHandlerService
;
import
com.clx.performance.service.settle.SettlementMqService
;
import
com.clx.performance.vo.mq.SettlementStatisticsMqParam
;
...
...
@@ -33,6 +34,8 @@ public class TempSettlementController {
private
OrderChildSyncTransportListener
orderChildSyncTransportListener
;
@Autowired
private
SettlementMqHandlerService
settlementMqHandlerService
;
@Autowired
private
OrderChildBrokerMqService
orderChildBrokerMqService
;
@ApiOperation
(
value
=
"settlementStatistics"
,
notes
=
"<br>By:艾庆国"
)
@RequestMapping
(
value
=
"/settlementStatistics"
,
method
=
RequestMethod
.
GET
)
...
...
@@ -48,10 +51,18 @@ public class TempSettlementController {
@ApiOperation
(
value
=
"运单同步broker"
,
notes
=
"<br>By:艾庆国"
)
@RequestMapping
(
value
=
"/orderChildSync"
,
method
=
RequestMethod
.
GET
)
public
Result
orderChildSync
(
String
childNo
)
{
OrderChild
orderChild
=
orderChildDao
.
getByChildNo
(
childNo
).
get
();
// 同步broker
orderChildSyncTransportListener
.
transportOrderChildProcess
(
orderChild
);
// 发送mq (更新无车承运)
orderChildBrokerMqService
.
orderChildSync
(
childNo
);
return
Result
.
ok
();
}
@ApiOperation
(
value
=
"运单更新broker"
,
notes
=
"<br>By:艾庆国"
)
@RequestMapping
(
value
=
"/orderChildUpdate"
,
method
=
RequestMethod
.
GET
)
public
Result
orderChildUpdate
(
String
childNo
)
{
// 发送mq (更新无车承运)
orderChildBrokerMqService
.
orderChildUpdate
(
childNo
);
return
Result
.
ok
();
}
...
...
performance-web/src/main/java/com/clx/performance/extranal/broker/impl/BrokerServiceImpl.java
浏览文件 @
aabb0c98
...
...
@@ -28,10 +28,10 @@ public class BrokerServiceImpl implements BrokerService {
Result
<
Object
>
result
=
brokerFeign
.
saveTransport
(
param
);
log
.
info
(
"运单同步网络货运, param:{}"
,
JSON
.
toJSONString
(
param
));
if
(
result
.
getCode
()
!=
0
)
{
log
.
info
(
"运单同步网络货运失败,
msg:{}"
,
result
.
getMsg
());
log
.
info
(
"运单同步网络货运失败,
childNo:{}, msg:{}"
,
param
.
getOrderChild
().
getSourceChildNo
()
,
result
.
getMsg
());
throw
new
ServiceSystemException
(
ResultEnum
.
FEIGN_ERROR
,
result
.
getMsg
());
}
log
.
info
(
"运单同步网络货运,
result:{}"
,
JSON
.
toJSONString
(
result
));
log
.
info
(
"运单同步网络货运,
childNo:{}, result:{}"
,
param
.
getOrderChild
().
getSourceChildNo
()
,
JSON
.
toJSONString
(
result
));
}
@Override
...
...
@@ -40,10 +40,10 @@ public class BrokerServiceImpl implements BrokerService {
Result
<
Object
>
result
=
brokerFeign
.
modifyTransport
(
param
);
if
(
result
.
getCode
()
!=
0
)
{
log
.
info
(
"运单更新网络货运失败,
msg:{}"
,
result
.
getMsg
());
log
.
info
(
"运单更新网络货运失败,
childNo:{}, msg:{}"
,
param
.
getOrderChild
().
getSourceChildNo
()
,
result
.
getMsg
());
throw
new
ServiceSystemException
(
ResultEnum
.
FEIGN_ERROR
,
result
.
getMsg
());
}
log
.
info
(
"运单更新网络货运,
result:{}"
,
JSON
.
toJSONString
(
result
));
log
.
info
(
"运单更新网络货运,
childNo:{}, result:{}"
,
param
.
getOrderChild
().
getSourceChildNo
()
,
JSON
.
toJSONString
(
result
));
}
@Override
...
...
@@ -57,9 +57,9 @@ public class BrokerServiceImpl implements BrokerService {
Result
<
TransportVO
>
result
=
brokerFeign
.
getTransportByChildNo
(
childNo
,
settlementConfig
.
getBrokerUserCode
(),
settlementNo
);
if
(
result
.
getCode
()
!=
0
)
{
log
.
info
(
"
运单同步网络货运失败, msg:{}"
,
result
.
getMsg
());
log
.
info
(
"
获取网络货运运单状态, childNo:{}, msg:{}"
,
childNo
,
result
.
getMsg
());
}
log
.
info
(
"
运单同步网络货运, result:{}"
,
JSON
.
toJSONString
(
result
));
log
.
info
(
"
获取网络货运运单状态, childNo:{}, result:{}"
,
childNo
,
JSON
.
toJSONString
(
result
));
return
result
.
getData
();
}
...
...
performance-web/src/main/java/com/clx/performance/listener/broker/BrokerDelayListener.java
浏览文件 @
aabb0c98
...
...
@@ -28,7 +28,7 @@ public class BrokerDelayListener {
@RabbitListener
(
queues
=
RabbitKeyBrokerConstants
.
DEFAULT_DEAD_QUEUE
)
public
void
process
(
Message
message
)
{
try
{
log
.
info
(
"无车承运-延迟, message:{}"
,
message
);
log
.
info
(
"无车承运-延迟, message:{}"
,
new
String
(
message
.
getBody
())
);
process
(
JSON
.
parseObject
(
new
String
(
message
.
getBody
()),
new
TypeReference
<
MqWrapper
<
MqDelay
>>(){}).
getData
());
}
catch
(
Exception
e
){
log
.
info
(
"无车承运-延迟 失败"
,
e
);
...
...
performance-web/src/main/java/com/clx/performance/listener/settle/SettlementDelayListener.java
浏览文件 @
aabb0c98
...
...
@@ -28,7 +28,7 @@ public class SettlementDelayListener {
@RabbitListener
(
queues
=
RabbitKeySettlementConstants
.
DEFAULT_DEAD_QUEUE
)
public
void
process
(
Message
message
)
{
try
{
log
.
info
(
"结算-延迟, message:{}"
,
message
);
log
.
info
(
"结算-延迟, message:{}"
,
new
String
(
message
.
getBody
())
);
process
(
JSON
.
parseObject
(
new
String
(
message
.
getBody
()),
new
TypeReference
<
MqWrapper
<
MqDelay
>>(){}).
getData
());
}
catch
(
Exception
e
){
log
.
info
(
"结算-延迟 失败"
,
e
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论