From 3cdc9d5b2b2aae099aa207802961d85eb9e92cf0 Mon Sep 17 00:00:00 2001 From: wangsixiang <2970484253@qq.com> Date: Tue, 20 Feb 2024 17:36:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zc/business/service/impl/DcShiftsServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcShiftsServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcShiftsServiceImpl.java index f14a93e7..10a4ceff 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcShiftsServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcShiftsServiceImpl.java @@ -103,7 +103,7 @@ public class DcShiftsServiceImpl implements IDcShiftsService * @return 结果 */ @Override - @Transactional(rollbackFor = ServiceException.class) + @Transactional(rollbackFor = Exception.class) public int insertDcShifts(DcShifts dcShifts) throws Exception{ String msg = ""; JSON employeesJson = dcShifts.getEmployeesJson(); @@ -155,7 +155,7 @@ public class DcShiftsServiceImpl implements IDcShiftsService * @return 结果 */ @Override - @Transactional(rollbackFor = ServiceException.class) + @Transactional(rollbackFor = Exception.class) public int updateDcShifts(DcShifts dcShifts) throws Exception{ String msg = ""; dcShifts.setUpdateTime(DateUtils.getNowDate()); @@ -198,7 +198,7 @@ public class DcShiftsServiceImpl implements IDcShiftsService * @return 结果 */ @Override - @Transactional(rollbackFor = ServiceException.class) + @Transactional(rollbackFor = Exception.class) public int deleteDcShiftsByIds(Long[] ids) throws Exception{ for (Long id:ids){ DcShifts dcShifts = dcShiftsMapper.selectDcShiftsById(id); @@ -226,7 +226,7 @@ public class DcShiftsServiceImpl implements IDcShiftsService } @Override - @Transactional(rollbackFor = ServiceException.class) + @Transactional(rollbackFor = Exception.class) public int deleteDcShiftsListId(DcShifts dcShifts) throws Exception { List shiftsValue = dcShiftsMapper.selectDcShiftsDeleteList(dcShifts); for (DcShifts shifts:shiftsValue){ @@ -269,7 +269,7 @@ public class DcShiftsServiceImpl implements IDcShiftsService } @Override - @Transactional(rollbackFor = ServiceException.class) + @Transactional(rollbackFor = Exception.class) public AjaxResult importEquipment(MultipartFile file) throws Exception{ String msg = ""; ExcelUtil util = new ExcelUtil(DcShifts.class);