浏览代码

适配多运单号

xdd 2 月之前
父节点
当前提交
d8709166af
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      fs-service-system/src/main/java/com/fs/store/service/impl/FsExpressServiceImpl.java

+ 3 - 0
fs-service-system/src/main/java/com/fs/store/service/impl/FsExpressServiceImpl.java

@@ -36,6 +36,8 @@ import org.springframework.stereotype.Service;
 import com.fs.store.mapper.FsExpressMapper;
 import com.fs.store.domain.FsExpress;
 import com.fs.store.service.IFsExpressService;
+import org.springframework.transaction.annotation.Propagation;
+import org.springframework.transaction.annotation.Transactional;
 import org.springframework.util.Base64Utils;
 
 /**
@@ -181,6 +183,7 @@ public class FsExpressServiceImpl implements IFsExpressService
     }
 
     @Override
+    @Transactional(propagation = Propagation.REQUIRED,rollbackFor = Exception.class)
     public void subscribeEspress(String orderCode, String deliverySn, String deliveryId, String userPhone) {
         //处理顺丰查询轨迹需手机号码后4位
         String requestData;