PBOM-正式列表搜索
This commit is contained in:
parent
b502414d32
commit
0a08f2f208
|
|
@ -444,13 +444,7 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
|||
@Transactional(rollbackFor = Exception.class)
|
||||
public void copyFrom(CopyPBomParam param) throws ExecutionException, InterruptedException {
|
||||
|
||||
BomNewPbomParentEntity root = this.getById(param.getSourceBomRowId());
|
||||
VUtils.isTure(root.getMaterialNo().startsWith("31")).throwMessage("31码物料不能进行复制");
|
||||
|
||||
BomNewPbomChildEntity child = pbomChildService.getById(param.getRowId());
|
||||
if(child.getVirtualPartRootMaterialNo().startsWith("31") && child.getVirtualPartType()>0){
|
||||
VUtils.isTure(true).throwMessage("31下的虚拟包不能删除");
|
||||
}
|
||||
checkCopyBomParam(param.getSourceBomRowId(), param.getTargetFacCode());
|
||||
BomCopy bomCopy = new BomCopy(param.getSourceBomRowId(), param.getTargetFacCode(), getAllBom(param.getSourceBomRowId(), 0));
|
||||
bomCopy.copy(param.getCheckResult());
|
||||
|
|
|
|||
Loading…
Reference in New Issue