|
@@ -1759,8 +1759,7 @@ public class ContractInfoServiceImpl extends BaseServiceImpl<ContractInfoMapper,
|
|
return R.fail(200, "合同段不存在");
|
|
return R.fail(200, "合同段不存在");
|
|
}
|
|
}
|
|
Set<String> syncPKeyIds = getSyncFlagIds(contractId, tableOwner);
|
|
Set<String> syncPKeyIds = getSyncFlagIds(contractId, tableOwner);
|
|
- List<ContractCollectFolder> contractCollectNodes = jdbcTemplate.query("select node_id, ifnull((select ancestors_p_id from m_wbs_tree_contract where p_key_id = a.node_id), (select ancestors from m_wbs_tree_contract_statistics where id = a.node_id)) as nodeAncestors from m_contract_collect_folder a where type = 1 and parent_id = " + folderId
|
|
|
|
- + " and EXISTS (SELECT 1 from m_wbs_tree_contract where p_key_id = a.node_id)",
|
|
|
|
|
|
+ List<ContractCollectFolder> contractCollectNodes = jdbcTemplate.query("select node_id, ifnull((select ancestors_p_id from m_wbs_tree_contract where p_key_id = a.node_id), (select ancestors from m_wbs_tree_contract_statistics where id = a.node_id)) as nodeAncestors from m_contract_collect_folder a where type = 1 and parent_id = " + folderId,
|
|
new BeanPropertyRowMapper<>(ContractCollectFolder.class));
|
|
new BeanPropertyRowMapper<>(ContractCollectFolder.class));
|
|
if (!contractCollectNodes.isEmpty()) {
|
|
if (!contractCollectNodes.isEmpty()) {
|
|
Set<Long> pKeyIds = new LinkedHashSet<>();
|
|
Set<Long> pKeyIds = new LinkedHashSet<>();
|