OMS-GW推送-商业合作伙伴
This commit is contained in:
+3
-2
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user