Commit 88f5c2b2 authored by suhuiguang's avatar suhuiguang

1.队伍类型树 未统计本身下队伍数量,支统计了子级数量bug修改

parent a9277e2c
...@@ -108,6 +108,7 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da ...@@ -108,6 +108,7 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
return list; return list;
} }
@Override
public List<DataDictionary> getByType(String type) { public List<DataDictionary> getByType(String type) {
LambdaQueryWrapper<DataDictionary> wrapper = new LambdaQueryWrapper<DataDictionary>(); LambdaQueryWrapper<DataDictionary> wrapper = new LambdaQueryWrapper<DataDictionary>();
wrapper.eq(DataDictionary::getIsDelete, false); wrapper.eq(DataDictionary::getIsDelete, false);
...@@ -125,7 +126,7 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da ...@@ -125,7 +126,7 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
) { ) {
if( null != m.children) { if( null != m.children) {
List<Menu> children = m.getChildren(); List<Menu> children = m.getChildren();
int count = 0; int count = m.num;
for (Menu mm:children for (Menu mm:children
) { ) {
count = count + mm.num; count = count + mm.num;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment