From 59b9946bca8db03d55c95fcd07cbe40b2cf1aac7 Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Mon, 23 Feb 2026 19:04:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=8B=E5=8A=A1=E9=94=81?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yudao/module/product/service/device/DeviceServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) 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); }