Forráskód Böngészése

保存物流信息

xdd 2 hónapja
szülő
commit
587f5d3971

+ 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);