分类软删除

This commit is contained in:
hupeng
2020-04-07 16:58:29 +08:00
parent 43e450a060
commit e96f95e120
7 changed files with 22 additions and 6 deletions

View File

@ -52,7 +52,7 @@ public class YxStoreCategoryServiceImpl extends BaseServiceImpl<YxStoreCategoryM
@Override
public List<CateDTO> getList() {
QueryWrapper<YxStoreCategory> wrapper = new QueryWrapper<>();
wrapper.eq("is_show",1).orderByAsc("sort");
wrapper.eq("is_show",1).eq("is_del",0).orderByAsc("sort");
List<CateDTO> list = categoryMap.toDto(baseMapper.selectList(wrapper));
return TreeUtil.list2TreeConverter(list,0);
}
@ -64,7 +64,7 @@ public class YxStoreCategoryServiceImpl extends BaseServiceImpl<YxStoreCategoryM
List<CateDTO> list = categoryMap.toDto(baseMapper.selectList(wrapper));
System.out.println(TreeUtil.getChildList(list,new CateDTO()));
//System.out.println(TreeUtil.getChildList(list,new CateDTO()));
return null;
}
}