1.Pbom
This commit is contained in:
parent
7b338c3879
commit
07db8a3e1d
|
|
@ -341,9 +341,9 @@ public class EbomApi extends BaseApi {
|
|||
|
||||
@PostMapping("intiException")
|
||||
@ApiOperation("初始化错误类型")
|
||||
public ResultVO<Boolean> intiException(@RequestParam("bomRowId") Long bomRowId) throws ExecutionException, InterruptedException {
|
||||
public ResultVO<Boolean> intiException(@RequestBody List<Long> bomRowIds) throws ExecutionException, InterruptedException {
|
||||
|
||||
bomNewEbomParentService.checkAndSaveEBomException(bomRowId );
|
||||
bomNewEbomParentService.batchCheckAndSaveEBomException(bomRowIds );
|
||||
return ResultVO.success(true);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -497,6 +497,22 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
|||
saveException(checkEBomException);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查 并保存异常信息
|
||||
*/
|
||||
public void batchCheckAndSaveEBomException(List<Long> bomRowIds) throws ExecutionException, InterruptedException {
|
||||
for (Long bomRowId : bomRowIds) {
|
||||
CheckEBomException checkEBomException = new CheckEBomException(bomRowId);
|
||||
checkEBomException.initException();
|
||||
|
||||
//保存异常
|
||||
saveException(checkEBomException);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -370,7 +370,7 @@ public class BomNewOriginalParentService extends ServiceImpl<BomNewOriginalParen
|
|||
convertToEBomDo(parent,ebomRowId);
|
||||
|
||||
//更新并保存异常信息
|
||||
ebomParentService.checkAndSaveEBomException(ebomRowId);
|
||||
ebomParentService.checkAndSaveEBomException( ebomRowId);
|
||||
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue