|  | @@ -278,6 +278,9 @@ public class InformationWriteQueryController extends BladeController {
 | 
	
		
			
				|  |  |              @ApiImplicitParam(name = "param", value = "题名规则", required = true)
 | 
	
		
			
				|  |  |      })
 | 
	
		
			
				|  |  |      public R<String> previewNodeName(@RequestParam String wbsId,@RequestParam String param){
 | 
	
		
			
				|  |  | +        if(StringUtils.isEmpty(param)){
 | 
	
		
			
				|  |  | +            throw new ServiceException("请输入题名规则");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          String sql="select p_key_id,ancestors_p_id from m_wbs_tree_contract where p_key_id="+wbsId+" and is_deleted=0";
 | 
	
		
			
				|  |  |          WbsTreeContract contract = jdbcTemplate.queryForObject(sql, new BeanPropertyRowMapper<>(WbsTreeContract.class));
 | 
	
		
			
				|  |  |          if(contract!=null){
 |