|
@@ -107,8 +107,18 @@ public class CwReimbursementTypeForTreeDataService extends TreeService<CwReimbur
|
|
|
|
|
|
if (StringUtils.isNotEmpty(type)) {
|
|
|
//禁选类型设置disable值为true
|
|
|
- if (type.contains(entity.getLevel())) {
|
|
|
- entity.setDisabled(true);
|
|
|
+ if ("last".equals(type)) {
|
|
|
+ allList.stream().forEach(item -> {
|
|
|
+ if (StringUtils.isNotBlank(item.getParentId())) {
|
|
|
+ if (item.getParentId().equals(entity.getId())) {
|
|
|
+ entity.setDisabled(true);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ if (type.contains(entity.getLevel())) {
|
|
|
+ entity.setDisabled(true);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|