This commit is contained in:
jing's 2024-04-01 18:04:17 +08:00
parent cc7ef9e335
commit 20913fd684
1 changed files with 2 additions and 2 deletions

View File

@ -89,8 +89,8 @@ public class EBomEdit {
Integer rootIs =SpringUtil.getBean(BomNewEbomParentService.class).getBaseMapper().checkIsRoot(parent.getMaterialNo());
Integer userRootIs = SpringUtil.getBean(BomNewEbomParentService.class).getBaseMapper().checkIsUserRoot(parent.getMaterialNo(), parent.getCreatedBy());
parent.setRootIs(rootIs);
parent.setUserRootIs(userRootIs);
parent.setRootIs(rootIs > 0 ? 0 : 1);
parent.setUserRootIs(userRootIs > 0 ? 0 : 1);
return parent;
}