This commit is contained in:
磷叶 2024-12-18 15:31:00 +08:00
parent 4e011cfd2b
commit df4db628d5
2 changed files with 4 additions and 1 deletions

View File

@ -65,6 +65,7 @@ public class MaterialServiceImpl implements MaterialService
@Autowired
private ILogImportDetailService logImportDetailService;
@Autowired
private TransactionTemplate transactionTemplate;

View File

@ -65,6 +65,8 @@ public class UnitServiceImpl implements UnitService
@Autowired
private ILogImportDetailService logImportDetailService;
@Autowired
private TransactionTemplate transactionTemplate;
/**
@ -142,7 +144,7 @@ public class UnitServiceImpl implements UnitService
@Override
public void sync(Long operaId) {
// 新增一个日志
LogImportVO importLog = logImportService.addDefaultLog(LogImportType.SYNC, LogImportBizType.MATERIAL, operaId);
LogImportVO importLog = logImportService.addDefaultLog(LogImportType.SYNC, LogImportBizType.UNIT, operaId);
ServiceUtil.assertion(importLog == null, "创建同步日志失败");
Long logId = importLog.getLogId();