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