修改bug

This commit is contained in:
yangjun 2025-08-07 17:21:47 +08:00
parent e53fea5385
commit 83efeabffd
1 changed files with 3 additions and 0 deletions

View File

@ -160,6 +160,7 @@ public class ConfigMaterialCategoryServiceImpl extends ServiceImpl<ConfigMateria
yylxMap.put("categoryId",yylxPar.getCategoryId());
yylxMap.put("typeId",yylxPar.getTypeId());
yylxMap.put("children","");
yylxMap.put("parentIzEnabled",par.getIzEnabled());
yylxMapList.add(yylxMap);
}
}
@ -190,6 +191,7 @@ public class ConfigMaterialCategoryServiceImpl extends ServiceImpl<ConfigMateria
List<Map<String,Object>> wllxMap2List = new ArrayList<Map<String,Object>>();
for(Map<String,Object> wllxPar : wllxMapList){
if(StringUtils.equals(par.getId(),wllxPar.get("parentId").toString())){
wllxPar.put("parentIzEnabled",par.getIzEnabled());
wllxMap2List.add(wllxPar);
}
}
@ -207,6 +209,7 @@ public class ConfigMaterialCategoryServiceImpl extends ServiceImpl<ConfigMateria
infoMap.put("izEnabled",par.getIzEnabled());
infoMap.put("children",wllxMap2List);
infoMap.put("categoryId",par.getId());
infoMap.put("parentIzEnabled",par.getIzEnabled());
infoMapList.add(infoMap);
}