From e31a93752a051a7d94356597325a6746f625d09a Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Tue, 10 Oct 2023 17:22:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86-=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E9=A1=B9=E7=BB=B4=E6=8A=A4(=E4=BA=8B=E5=8A=A1?= =?UTF-8?q?=E9=94=81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/op/device/service/impl/EquCheckItemServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/op-modules/op-device/src/main/java/com/op/device/service/impl/EquCheckItemServiceImpl.java b/op-modules/op-device/src/main/java/com/op/device/service/impl/EquCheckItemServiceImpl.java index 2fc24803..3838a68a 100644 --- a/op-modules/op-device/src/main/java/com/op/device/service/impl/EquCheckItemServiceImpl.java +++ b/op-modules/op-device/src/main/java/com/op/device/service/impl/EquCheckItemServiceImpl.java @@ -21,6 +21,7 @@ import org.springframework.stereotype.Service; import com.op.device.mapper.EquCheckItemMapper; import com.op.device.domain.EquCheckItem; import com.op.device.service.IEquCheckItemService; +import org.springframework.transaction.annotation.Transactional; import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRequestAttributes; @@ -99,6 +100,7 @@ public class EquCheckItemServiceImpl implements IEquCheckItemService { */ @Override @DS("#header.poolName") + @Transactional public AjaxResult insertEquCheckItem(EquCheckItemDTO equCheckItemDTO) { // 检验重复 EquCheckItem checkItem = equCheckItemMapper.selectEquCheckItemByItemName(equCheckItemDTO.getItemName()); @@ -169,6 +171,7 @@ public class EquCheckItemServiceImpl implements IEquCheckItemService { */ @Override @DS("#header.poolName") + @Transactional public AjaxResult updateEquCheckItem(EquCheckItemDTO equCheckItemDTO) { EquCheckItem equCheckItem = new EquCheckItem(); BeanUtils.copyProperties(equCheckItemDTO, equCheckItem);