数据回滚问题

This commit is contained in:
dingjie 2023-12-23 23:09:17 +08:00
parent df5d92ef99
commit 5a49a44693
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ public class PurchaseMacodeInfoServiceImpl implements IPurchaseMacodeInfoService
* @return 结果 * @return 结果
*/ */
@Override @Override
@Transactional @Transactional(rollbackFor=Exception.class)
public AjaxResult insertPurchaseMacodeInfo(List<PurchaseMacodeInfo> purchaseMacodeInfoList) throws Exception { public AjaxResult insertPurchaseMacodeInfo(List<PurchaseMacodeInfo> purchaseMacodeInfoList) throws Exception {
boolean b = true; boolean b = true;
for (PurchaseMacodeInfo purchaseMacodeInfo : purchaseMacodeInfoList) { for (PurchaseMacodeInfo purchaseMacodeInfo : purchaseMacodeInfoList) {

View File

@ -152,7 +152,7 @@ public class RepairAuditDetailsServiceImpl implements IRepairAuditDetailsService
* @return 结果 * @return 结果
*/ */
@Override @Override
@Transactional @Transactional(rollbackFor=Exception.class)
public int auditRepair(ScrapAudit scrapAudit) throws Exception { public int auditRepair(ScrapAudit scrapAudit) throws Exception {
String checkResult = scrapAudit.getCheckResult(); String checkResult = scrapAudit.getCheckResult();
List<Long> taskIdList = scrapAudit.getTaskIdList(); List<Long> taskIdList = scrapAudit.getTaskIdList();