浏览代码

保存物流信息

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

+ 2 - 0
fs-service-system/src/main/java/com/fs/express/impl/FsStoreDeliversServiceImpl.java

@@ -18,6 +18,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Propagation;
 import org.springframework.transaction.annotation.Transactional;
 
 import java.time.LocalDateTime;
@@ -155,6 +156,7 @@ public class FsStoreDeliversServiceImpl implements FsStoreDeliversService {
     }
 
     @Override
+    @Transactional(rollbackFor = Exception.class,propagation = Propagation.REQUIRED)
     public void editDeliveryId(FsStoreDelivers deliveryDTO) {
         if(ObjectUtil.isNull(deliveryDTO.getId())){
             deliveryDTO.setStatus(0);