| 
					
				 | 
			
			
				@ -51,12 +51,22 @@ public class ZjxlSystemDictService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return articleContentList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public int findSystemDictClassifyByCondition(String systemDictClassify,String dictId){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql = "select count(1) from zjxl_system_dict where system_dict_classify = '"+systemDictClassify+"' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (StringUtils.isNoneBlank(dictId)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            sql +="and system_dict_id <>'"+dictId+"' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public int findSystemDictExistByCondition(String id,Integer systemDictType,String systemDictClassify,String systemDictSubclassify){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        StringBuffer sql = new StringBuffer("select count(1) from zjxl_system_dict where 1=1 "); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(StringUtils.isNoneBlank(id)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            sql.append("and system_dict_id <>'"+id+"' "); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Integer articleContentList = jdbcTemplate.queryForObject(sql, Integer.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (systemDictType !=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            sql.append("and system_dict_type ='"+systemDictType+"' "); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (StringUtils.isNoneBlank(systemDictClassify)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           sql.append("and system_dict_classify ='"+systemDictClassify+"' "); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (StringUtils.isNoneBlank(systemDictSubclassify)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            sql.append("and system_dict_subclassify ='"+systemDictSubclassify+"' "); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Integer articleContentList = jdbcTemplate.queryForObject(sql.toString(), Integer.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return articleContentList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -120,10 +130,9 @@ public class ZjxlSystemDictService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            result.put("status",-1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        int systemDictClassifyList = findSystemDictClassifyByCondition(systemDictClassify,systemDictId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //查询子分类是否存在 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        int systemDictSubclassifyList = findSystemDictSubclassifyByCondition(systemDictSubclassify,systemDictId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (systemDictClassifyList>0&&systemDictSubclassifyList>0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        int systemIsExist = findSystemDictExistByCondition(systemDictId,systemDictType,systemDictClassify,systemDictSubclassify); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (systemIsExist>0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            result.put("status",0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 |