fix: 修复一个bug

This commit is contained in:
曹鹏飞 2024-04-16 15:22:35 +08:00
parent abd6a0742d
commit e7f7b4c15c
1 changed files with 2 additions and 1 deletions

View File

@ -706,7 +706,8 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
pbomChildService.getBaseMapper().setProductionFactoryCode(k.getProductionFactoryCode(), rowIds); pbomChildService.getBaseMapper().setProductionFactoryCode(k.getProductionFactoryCode(), rowIds);
} }
if (k.getProductionFactoryCode().equals(EBomConstant.MAIN_FACTORY_CODE_1010)) { if (k.getProductionFactoryCode().equals(EBomConstant.MAIN_FACTORY_CODE_1010)
&& CollUtil.isNotEmpty(k.getAllParentRowIds())) {
//设置所有父级节点为1010 //设置所有父级节点为1010
pbomChildService.setParentFactoryCode1010(k.getAllParentRowIds()); pbomChildService.setParentFactoryCode1010(k.getAllParentRowIds());
} }