|  | @ -4354,7 +4354,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |      * @param name
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public List<Map<String,Object>> findDoctorByName(String hospital, String name){
 | 
	
		
			
				|  |  |     public List<Map<String,Object>> findDoctorByName(String hospital, String name,String chargeType){
 | 
	
		
			
				|  |  |         String sql ="SELECT " +
 | 
	
		
			
				|  |  |                 " d.id AS \"id\", " +
 | 
	
		
			
				|  |  |                 " d.`name` AS \"name\"" +
 | 
	
	
		
			
				|  | @ -4363,12 +4363,27 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(hospital)){
 | 
	
		
			
				|  |  |             sql +=" JOIN base_doctor_hospital h ON h.doctor_code = d.id";
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |             sql +=" WHERE " +
 | 
	
		
			
				|  |  |         sql +=" JOIN base_doctor_role r ON r.doctor_code = d.id ";
 | 
	
		
			
				|  |  |         sql +=" WHERE " +
 | 
	
		
			
				|  |  |                 " d. NAME LIKE '%"+name+"%'";
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(hospital)){
 | 
	
		
			
				|  |  |             sql +=" AND h.org_code ='"+hospital+"'";
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(chargeType)){
 | 
	
		
			
				|  |  |             if("all".equals(chargeType)){
 | 
	
		
			
				|  |  |                 //查询全部号源
 | 
	
		
			
				|  |  |             }else{
 | 
	
		
			
				|  |  |                 sql+=" AND d.charge_type ='"+chargeType+"'";
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }else{
 | 
	
		
			
				|  |  |             sql+=" AND d.charge_type is not null ";
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         sql += " AND r.role_code ='specialist'";
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         logger.info("findDoctorByName :"+sql);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         List<Map<String,Object>> list = hibenateUtils.createSQLQuery(sql);
 | 
	
		
			
				|  |  |         if(list!=null&&list.size()>0){
 | 
	
		
			
				|  |  |             for(int i=0;i<list.size();i++){
 |