From 367dfb4ba7f1f181314ea4bfe3cb7cf9ae036b02 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 09 十月 2021 18:47:21 +0800
Subject: [PATCH] 京东订单备份,长期处于付款状态的订单处理

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/order/msg/MsgOrderDetailServiceImpl.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/msg/MsgOrderDetailServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/msg/MsgOrderDetailServiceImpl.java
index feaf933..9730c92 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/msg/MsgOrderDetailServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/msg/MsgOrderDetailServiceImpl.java
@@ -22,6 +22,7 @@
 import com.yeshi.fanli.util.Constant;
 import com.yeshi.fanli.util.StringUtil;
 
+import org.springframework.transaction.annotation.Transactional;
 import redis.clients.jedis.Jedis;
 import redis.clients.jedis.JedisPool;
 
@@ -44,6 +45,7 @@
     private MsgOverViewsService msgOverViewsService;
 
 
+    @Transactional(rollbackFor = Exception.class)
     @Override
     public void addMsgOrderDetail(MsgOrderDetail detail, boolean needNotify) throws MsgOrderDetailException {
         if (detail == null)
@@ -88,7 +90,7 @@
                     update.setBeiZhu(detail.getBeiZhu());
                     msgOrderDetailMapper.updateByPrimaryKeySelective(update);
                     //鏇存柊娑堟伅绱㈠紩鏃堕棿
-                    msgOverViewsService.updateTime(MsgOverViewsFactory.create(detail).getId(), update.getUpdateTime());
+                    msgOverViewsService.updateTime(MsgOverViewsFactory.create(update).getId(), update.getUpdateTime());
                     msgExtraService.addMsgExtra(update.getId(), detail.getExtraInfo(), MsgExtra.MSG_TYPE_ORDER);
                 }
                 if (needNotify)

--
Gitblit v1.8.0