更新
This commit is contained in:
parent
4e011cfd2b
commit
df4db628d5
|
@ -65,6 +65,7 @@ public class MaterialServiceImpl implements MaterialService
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ILogImportDetailService logImportDetailService;
|
private ILogImportDetailService logImportDetailService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private TransactionTemplate transactionTemplate;
|
private TransactionTemplate transactionTemplate;
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,8 @@ public class UnitServiceImpl implements UnitService
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ILogImportDetailService logImportDetailService;
|
private ILogImportDetailService logImportDetailService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
private TransactionTemplate transactionTemplate;
|
private TransactionTemplate transactionTemplate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -142,7 +144,7 @@ public class UnitServiceImpl implements UnitService
|
||||||
@Override
|
@Override
|
||||||
public void sync(Long operaId) {
|
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, "创建同步日志失败");
|
ServiceUtil.assertion(importLog == null, "创建同步日志失败");
|
||||||
Long logId = importLog.getLogId();
|
Long logId = importLog.getLogId();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user