Commit 21461adc by jx-art

打印一级二级查询出来的条数

parent 3d896348
......@@ -160,7 +160,7 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
public List<ChangeTypePo> queryConfigType() {
//获取数据,创建目录集合,遍历分组
List<ChangeTypePo> changeTypes = mapper.queryArrayChangeTypes();
logger.error("查询所有一级二级配置类型"+changeTypes.toString());
logger.error("查询所有一级二级配置类型"+changeTypes.size());
List<ChangeTypePo> pos = new ArrayList<>();
for (ChangeTypePo changeType : changeTypes) {
if (changeType.getParentId() == 0){
......@@ -175,7 +175,7 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
}
}
}
logger.error("map处理后结果"+pos.toString());
logger.error("map处理后结果"+pos.size());
//去重如果父类下边包裹的List数量为0的时候就自动剔除
pos.removeIf(changeTypePo -> changeTypePo.getChangeTypes().size() == 0);
return pos;
......
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