更新工单问题树对非空子集的判断
This commit is contained in:
parent
3ee4b263ee
commit
5f7d65ae61
@ -39,11 +39,15 @@ public class WorkTypeServiceImpl implements WorkTypeService {
|
||||
for (Map<String, Object> childMap: childList){
|
||||
params.put("parentTypeId", childMap.get("id"));
|
||||
List<Map<String, Object>> dataList = typeDictMapper.selectMapListByParentParams(params);
|
||||
if(dataList.size() > 0){
|
||||
childMap.put("children", dataList);
|
||||
}
|
||||
}
|
||||
|
||||
if (childList.size() > 0){
|
||||
map.put("children", childList);
|
||||
}
|
||||
}
|
||||
|
||||
return typeList;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user