OMS-GW推送-商业合作伙伴

This commit is contained in:
zhaoqing
2026-05-06 13:51:57 +08:00
parent b62fc345b0
commit 4d732b1bf8
4 changed files with 13 additions and 10 deletions
@@ -110,7 +110,7 @@ public class BusinessPartnerApplicationService {
gwLog.setDelFlag(1);
gwLogMapper.insert(gwLog);
updatePushStatus(Long.valueOf(businessPartnerDTO.getShipperId()),2,null,pushBy);
updatePushStatus(Long.valueOf(businessPartnerDTO.getShipperId()),2,new Date(),pushBy);
CloseableHttpClient httpClient = HttpClients.createDefault();
HttpPost httpPost = new HttpPost(PUSH_API_URL);
@@ -173,7 +173,8 @@ public class BusinessPartnerApplicationService {
private void updatePushStatus(Long shipperId, Integer pushStatus, Date pushTime, Long pushBy) {
try {
// 调用user-center的Feign接口,更新货主的推送状态
userServiceFeign.updatePushStatus(shipperId, pushStatus, pushTime, pushBy);
AjaxResult result = userServiceFeign.updatePushStatus(shipperId, pushStatus, pushTime, pushBy);
log.info("更新返回结果:{}",result);
} catch (Exception e) {
// 如果更新失败,记录错误日志,但不阻断主流程
log.info("更新推送状态失败: shipperId={}, error={}", shipperId, e.getMessage());