Commit 3d896348 by jx-art

添加一级二级类目查询日志

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