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