| 
					
				 | 
			
			
				@ -418,6 +418,14 @@ public class MedicineDrugsService extends BaseJpaService<Mediicinedrugs, Mediici 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            conditionSql += " AND CONCAT(IFNULL(t.drug_name,''),IFNULL(t.drug_code,''),IFNULL(t.drug_name_alies,''),IFNULL(lower(t.spell_code),'')) LIKE '%" + content.toLowerCase() + "%'"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//      List<Mediicinedrugs> mediicinedrugs = drugsDao.findMediicinedrugsByOrgCode(mediicinedevice.getBelongCommunity()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String countSql = " select " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "     COUNT(DISTINCT (t.id)) as count " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   from " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "     t_mediicine_drugs t "+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                conditionSql; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Logger.getAnonymousLogger().info("finalCountSql="+countSql); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        int count = jdbcTemplate.queryForObject(countSql,Integer.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        result.put("count", count); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        result.put("msg", hibenateUtils.createSQLQuery((sql+conditionSql),page,size)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        result.put("response", ConstantUtils.SUCCESS); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return result; 
			 |