diff --git a/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/service/device/DeviceServiceImpl.java b/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/service/device/DeviceServiceImpl.java index 7d70a5e..3147866 100644 --- a/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/service/device/DeviceServiceImpl.java +++ b/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/service/device/DeviceServiceImpl.java @@ -20,6 +20,7 @@ import javax.annotation.Resource; import javax.imageio.ImageIO; import org.springframework.validation.annotation.Validated; +import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; import java.awt.*; @@ -328,6 +329,7 @@ public class DeviceServiceImpl implements DeviceService { } @Override + @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) public int updateDeviceLastChannel(String deviceId, String cabinetChannel) { return deviceMapper.updateDeviceLastChannel(deviceId, cabinetChannel); }