|
@@ -3581,7 +3581,7 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
|
|
|
//不是工序,则查询当前节点下的所有填报节点
|
|
|
if (node.getParentId() == 0) { // TODO(暂不响应第一层根节点数据,数据量过多会导致响应超时)
|
|
|
- return R.fail("当前节点下子节点过多,请减少节点层级进行检索!");
|
|
|
+ return R.fail("请从第三层级节点开始进行检索");
|
|
|
|
|
|
/*//当前合同段最底层节点pKeyIds
|
|
|
List<WbsTreeContract> lowestNodesAll = jdbcTemplate.query("select a.p_key_id,a.id,(SELECT CASE WHEN COUNT(1) > 0 THEN 1 ELSE 0 END FROM m_wbs_tree_contract b WHERE b.parent_id = a.id AND b.contract_id = " + node.getContractId() + " AND b.status = 1 AND b.type = 1 AND b.is_deleted = 0) AS hasChildren from m_wbs_tree_contract a where a.type = 1 and a.status = 1 and a.is_deleted = 0 and a.contract_id = " + node.getContractId() + " HAVING hasChildren = 0", new BeanPropertyRowMapper<>(WbsTreeContract.class));
|
|
@@ -3600,7 +3600,7 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
//TODO 判断选择节点是否为第二层(暂不响应第二层数据,数据量过多会导致响应超时)
|
|
|
WbsTreeContract wbsTreeContract = jdbcTemplate.query("select parent_id from m_wbs_tree_contract where is_deleted = 0 and status = 1 and type = 1 and id = " + node.getParentId() + " and contract_id = " + node.getContractId(), new BeanPropertyRowMapper<>(WbsTreeContract.class)).stream().findAny().orElse(null);
|
|
|
if (wbsTreeContract != null && wbsTreeContract.getParentId().equals(0L)) {
|
|
|
- return R.fail("当前节点下子节点过多,请减少节点层级进行检索!");
|
|
|
+ return R.fail("请从第三层级节点开始进行检索");
|
|
|
}
|
|
|
|
|
|
//获取当前选择的节点下的所有最底层节点
|