|
@@ -132,7 +132,7 @@ public class WbsTreePrivateServiceImpl extends BaseServiceImpl<WbsTreePrivateMap
|
|
|
List<WbsTreePrivate> wbsTreePrivates = baseMapper.selectList(wrapper);
|
|
|
if(wbsTreePrivates.size()>0){
|
|
|
//过滤出所有不为表单的节点,大于0,则不是最小节点
|
|
|
- if(wbsTreePrivates.stream().filter(o->o.getInitTableName()==null).collect(Collectors.toList()).size()>0){
|
|
|
+ if(wbsTreePrivates.stream().filter(o->o.getType()==Integer.valueOf(1)).collect(Collectors.toList()).size()>0){
|
|
|
throw new ServiceException("该节点不是最小节点不能设置标准分类和单元名称");
|
|
|
}
|
|
|
}
|