|
@@ -152,6 +152,7 @@ public class ApplyBuyServiceImpl extends ServiceImpl<ApplyBuyMapper, ApplyBuy> i
|
|
|
|
|
|
save(dto);
|
|
|
applyBuyBomService.saveBatch(applyBuyBomList);
|
|
|
+ this.addApplyBuyAccessory(dto.getId());
|
|
|
}
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@@ -168,7 +169,7 @@ public class ApplyBuyServiceImpl extends ServiceImpl<ApplyBuyMapper, ApplyBuy> i
|
|
|
|
|
|
@DSTransactional
|
|
|
@Override
|
|
|
- public void addBomAccessory(Long id) {
|
|
|
+ public void addApplyBuyAccessory(Long id) {
|
|
|
// 新增备货需求附件
|
|
|
List<ApplyBuyBomAccessoryVo> applyData = this.getApplyData(id);
|
|
|
// 修改表头
|
|
@@ -197,7 +198,7 @@ public class ApplyBuyServiceImpl extends ServiceImpl<ApplyBuyMapper, ApplyBuy> i
|
|
|
obsFile.setId(fileInfo.getId());
|
|
|
obsFile.setFileName(fileName);
|
|
|
obsFile.setFileUrl(fileUrl);
|
|
|
- ObsFileUtil.saveFile(obsFile, id);
|
|
|
+ ObsFileUtil.editFile(obsFile, id);
|
|
|
}
|
|
|
|
|
|
|