|  | @ -42,7 +42,7 @@ public class BaseDoctorService extends BaseJpaService<BaseDoctorDO, BaseDoctorDa
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 查询医生信息分页列表
 | 
	
		
			
				|  |  |      * 查询医生信息分页列表.
 | 
	
		
			
				|  |  |      * @param city
 | 
	
		
			
				|  |  |      * @param hospital
 | 
	
		
			
				|  |  |      * @param status
 | 
	
	
		
			
				|  | @ -57,7 +57,7 @@ public class BaseDoctorService extends BaseJpaService<BaseDoctorDO, BaseDoctorDa
 | 
	
		
			
				|  |  |                 " FROM " +
 | 
	
		
			
				|  |  |                 " base_doctor a " +
 | 
	
		
			
				|  |  |                 " JOIN base_doctor_hospital b ON a.id = b.doctor_code " +
 | 
	
		
			
				|  |  |                 " LEFT JOIN wlyy_charge_dict e ON a.charge_type = e.charge_type " +
 | 
	
		
			
				|  |  |                 " LEFT JOIN (SELECT * FROM wlyy_charge_dict t WHERE t.dept_type_code ='6') e ON a.charge_type = e.charge_type " +
 | 
	
		
			
				|  |  |                 " LEFT JOIN base_doctor_mapping c ON a.id = c.doctor " +
 | 
	
		
			
				|  |  |                 " WHERE " +
 | 
	
		
			
				|  |  |                 " 1 = 1";
 | 
	
	
		
			
				|  | @ -110,7 +110,7 @@ public class BaseDoctorService extends BaseJpaService<BaseDoctorDO, BaseDoctorDa
 | 
	
		
			
				|  |  |                 " FROM " +
 | 
	
		
			
				|  |  |                 " base_doctor a " +
 | 
	
		
			
				|  |  |                 " JOIN base_doctor_hospital b ON a.id = b.doctor_code " +
 | 
	
		
			
				|  |  |                 " LEFT JOIN wlyy_charge_dict e ON a.charge_type = e.charge_type " +
 | 
	
		
			
				|  |  |                 " LEFT JOIN (SELECT * FROM wlyy_charge_dict t WHERE t.dept_type_code ='6') e ON a.charge_type = e.charge_type " +
 | 
	
		
			
				|  |  |                 " LEFT JOIN base_doctor_mapping c ON a.id = c.doctor " +
 | 
	
		
			
				|  |  |                 " WHERE 1=1";
 | 
	
		
			
				|  |  |         if (StringUtils.isNotBlank(city)){
 | 
	
	
		
			
				|  | @ -210,7 +210,7 @@ public class BaseDoctorService extends BaseJpaService<BaseDoctorDO, BaseDoctorDa
 | 
	
		
			
				|  |  |             for(int i=0;i<jsonArray.size();i++){
 | 
	
		
			
				|  |  |                 JSONObject doctor = jsonArray.getJSONObject(i);
 | 
	
		
			
				|  |  |                 try {
 | 
	
		
			
				|  |  |                     update(doctor);
 | 
	
		
			
				|  |  |                     updateInfo(doctor);
 | 
	
		
			
				|  |  |                 }catch (Exception e){
 | 
	
		
			
				|  |  |                     logger.info("update doctor error:"+e.toString());
 | 
	
		
			
				|  |  |                 }
 | 
	
	
		
			
				|  | @ -265,6 +265,17 @@ public class BaseDoctorService extends BaseJpaService<BaseDoctorDO, BaseDoctorDa
 | 
	
		
			
				|  |  |         return true;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public Boolean updateInfo(JSONObject jsonObject)throws Exception{
 | 
	
		
			
				|  |  |         //取出数据
 | 
	
		
			
				|  |  |         String doctorId = jsonObject.get("doctorId").toString();
 | 
	
		
			
				|  |  |         String introduce = jsonObject.get("introduce").toString();
 | 
	
		
			
				|  |  |         String expertise = jsonObject.get("expertise").toString();
 | 
	
		
			
				|  |  |         String photo = jsonObject.get("photo").toString();
 | 
	
		
			
				|  |  |         String outpatientType = jsonObject.get("outpatientType").toString();
 | 
	
		
			
				|  |  |         baseDoctorDao.update(doctorId,introduce,expertise,photo,outpatientType);
 | 
	
		
			
				|  |  |         return true;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 修改医生状态
 | 
	
	
		
			
				|  | @ -300,7 +311,18 @@ public class BaseDoctorService extends BaseJpaService<BaseDoctorDO, BaseDoctorDa
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | //    public static void main(String ag[]){
 | 
	
		
			
				|  |  | //        String str = "[{\"doctor\",\"1\"},{\"doctor\",\"2\"}]";
 | 
	
		
			
				|  |  | //        String str = "[ " +
 | 
	
		
			
				|  |  | //                "{ " +
 | 
	
		
			
				|  |  | //                "\"title\":\"Java 开发\", " +
 | 
	
		
			
				|  |  | //                "\"edition\":3, " +
 | 
	
		
			
				|  |  | //                "\"author\":[\"smith\",\"张三\",\"李四\"] " +
 | 
	
		
			
				|  |  | //                "}, " +
 | 
	
		
			
				|  |  | //                "{ " +
 | 
	
		
			
				|  |  | //                "\"title\":\"Web 开发\", " +
 | 
	
		
			
				|  |  | //                "\"edition\":3, " +
 | 
	
		
			
				|  |  | //                "\"author\":[\"Allen\",\"王五\",\"赵六\"] " +
 | 
	
		
			
				|  |  | //                "} " +
 | 
	
		
			
				|  |  | //                "]";
 | 
	
		
			
				|  |  | //        JSONArray json = JSONArray.fromObject(str);
 | 
	
		
			
				|  |  | //        for(int i=0;i<json.size();i++){
 | 
	
		
			
				|  |  | //            JSONObject doctor = json.getJSONObject(i);
 |