首页 > TAG信息列表 > entityList

2021-10-18

public static List getTreeList(String topId, List entityList) { //存储顶层的数据 List resultList = new ArrayList<>(); Map<Object, OperatingStatementDto> treeMap = new HashMap<>(16); for (int i = 0; i < entityList.size() && !entit

树节点工具

test //从数据库查询出数据 List<ProductDirectory> result = productDirectoryDao.queryProductDir(productDirectory); //转换成树形数据结构 List<ProductDirectory> treeList = TreeParser.getTreeList("0",result); // ProductDirectory public class ProductDirec

Mybatis使用ExecutorType.BATCH批量插入数据

具体原理参考下方的资料 1.https://mp.weixin.qq.com/s/eyxq1kcH4i1jMr8RnyGWvA 2.https://blog.csdn.net/xlecho/article/details/102474146 3.https://blog.csdn.net/qq_40144558/article/details/93981183 4.https://blog.csdn.net/wlwlwlwl015/article/details/50246717

2021-10-12

@java 8 Comparator 排序 List entityList = thie.list(wrapper); // 获取list entityList.sort(Comparator.comparingInt(Entity::getCode)); // 按照int 形的code排序