|
@@ -900,15 +900,7 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
localCacheNodes.put(sgContractId, nodesAll);
|
|
|
|
|
|
} else {
|
|
|
-
|
|
|
- long startTime1 = System.currentTimeMillis();
|
|
|
-
|
|
|
nodesAll = jdbcTemplate.query("select a.p_key_id,a.id,a.parent_id from m_wbs_tree_contract a where a.type = 1 and a.status = 1 and a.is_deleted = 0 and a.contract_id = " + sgContractId, new BeanPropertyRowMapper<>(WbsTreeContractLazyVO.class));
|
|
|
-
|
|
|
- long endTime1 = System.currentTimeMillis();
|
|
|
- long executionTime1 = endTime1 - startTime1;
|
|
|
- System.out.println("baseMapper.selectList(contractId)执行时间:" + executionTime1 + " ms");
|
|
|
-
|
|
|
if (nodesAll.size() > 0) {
|
|
|
//判断是否有子级,赋值
|
|
|
Map<Long, List<WbsTreeContractLazyVO>> groupedByParentId = nodesAll.stream().collect(Collectors.groupingBy(WbsTreeContractLazyVO::getParentId));
|