ebom添加bom 接口

This commit is contained in:
jing's 2024-03-14 17:21:58 +08:00
parent 9b7f3b2a1d
commit e4791b20bf
2 changed files with 13 additions and 2 deletions

View File

@ -357,6 +357,19 @@ public class EbomApi extends BaseApi {
return ResultVO.success(bomNewEbomParentService.temporary(dto));
}
@PostMapping("temporaryAdd")
@ApiOperation("暂存添加")
@LogRecord(success = "Ebom-暂存添加,物料编码:{{#dto.parent.materialNo}}-版本:{{#dto.parent.currentVersion}},操作结果:{{#_ret}}", bizNo = "{{#dto.parent.rowId}}",type = "Ebom-暂存添加")
public ResultVO<BomNewEbomParentVO> temporaryAdd(@RequestBody BomNewEBomParentEditDTO dto) throws ExecutionException, InterruptedException {
return ResultVO.success(bomNewEbomParentService.temporary(dto));
}
@PostMapping("submitAdd")
@ApiOperation("提交添加")
@LogRecord(success = "Ebom-提交添加,物料编码:{{#dto.parent.materialNo}}-版本:{{#dto.parent.currentVersion}},操作结果:{{#_ret}}", bizNo = "{{#dto.parent.rowId}}",type = "Ebom-提交添加")
public ResultVO<Boolean> submitAdd(@RequestBody BomNewEBomParentEditDTO dto) throws ExecutionException, InterruptedException {
return ResultVO.success(bomNewEbomParentService.submit(dto));
}
@PostMapping("submit")

View File

@ -255,8 +255,6 @@ public class BomNewMbomParentService extends ServiceImpl<BomNewMbomParentMapper,
}
ImportSapParamDTO result=new ImportSapParamDTO();
result.setT1(new ArrayList<>());
result.setZID(RandomUtil.randomNumbers(5));