|
@@ -400,13 +400,7 @@ public class WbsTreePrivateController extends BladeController {
|
|
|
List<WbsNodeTableVO> data = r.getData();
|
|
|
List<WbsTreePrivateTableVO> list = new ArrayList<>();
|
|
|
if (data != null && !data.isEmpty()) {
|
|
|
- Integer wbsType = null;
|
|
|
- if (StringUtil.isNumeric(wbsId)) {
|
|
|
- List<WbsInfo> query = jdbcTemplate.query("select id, wbs_type from m_wbs_info where is_deleted = 0 and id = " + Long.parseLong(wbsId), new BeanPropertyRowMapper<>(WbsInfo.class));
|
|
|
- if (!query.isEmpty()) {
|
|
|
- wbsType = query.get(0).getWbsType();
|
|
|
- }
|
|
|
- }
|
|
|
+ Integer wbsType = data.get(0).getWbsType();
|
|
|
Map<Integer, List<WbsNodeTableVO>> groupMap;
|
|
|
if (wbsType != null && wbsType == 1) {
|
|
|
groupMap = data.stream().collect(Collectors.groupingBy(vo -> {
|