|
@@ -2529,6 +2529,12 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
StringBuilder parentNodeName = new StringBuilder();
|
|
|
this.currentNodeAllParent(parentNodeName, removeNode);
|
|
|
|
|
|
+ //判断是否子节点有上报或审批过的资料
|
|
|
+ List<InformationQuery> list = informationQueryService.selectChildrenNodeInfo(removeNode);
|
|
|
+ if (list != null && list.size() >= 1){
|
|
|
+ return R.data(300, false, "存在已经上报或审批的节点,不允许删除");
|
|
|
+ }
|
|
|
+
|
|
|
//查询所有子节点
|
|
|
List<WbsTreeContract> removeNodeList = jdbcTemplate.query("select p_key_id,type from m_wbs_tree_contract where is_deleted = 0 and contract_id = " + removeNode.getContractId() + " and ancestors like '%" + removeNode.getId() + "%'", new BeanPropertyRowMapper<>(WbsTreeContract.class));
|
|
|
//获取pKeyId
|