修复事务锁问题
This commit is contained in:
1 parent
addad72e2e
commit
59b9946bca
1 file changed
+2
+2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user