|  | @ -22,6 +22,7 @@ import com.yihu.jw.patient.dao.BasePatientDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.ResponseContant;
 | 
	
		
			
				|  |  | import com.yihu.jw.util.idcard.IdCardUtil;
 | 
	
		
			
				|  |  | import com.yihu.jw.utils.StringUtil;
 | 
	
		
			
				|  |  | import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  | import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | import org.springframework.jdbc.core.BeanPropertyRowMapper;
 | 
	
		
			
				|  |  | import org.springframework.jdbc.core.JdbcTemplate;
 | 
	
	
		
			
				|  | @ -697,10 +698,20 @@ public class CourseService {
 | 
	
		
			
				|  |  |     public JSONObject getTecInfoById(String doctor,String orgCode,int page,int size){
 | 
	
		
			
				|  |  |         JSONObject object = new JSONObject();
 | 
	
		
			
				|  |  |         //老师的基本信息
 | 
	
		
			
				|  |  |         String sql = "SELECT d.id,d.introduce,d.name,d.job_title_code jobTitleCode,d.job_title_name jobTitleName,dh.org_code orgCode,dh.org_name orgName\n" +
 | 
	
		
			
				|  |  |         String sql = "SELECT d.id,d.introduce,d.name,d.photo,d.sex,d.idcard,d.job_title_code jobTitleCode,d.job_title_name jobTitleName,dh.org_code orgCode,dh.org_name orgName\n" +
 | 
	
		
			
				|  |  |                 "FROM base_doctor d,base_doctor_hospital dh\n" +
 | 
	
		
			
				|  |  |                 "WHERE d.id = '"+doctor+"' AND dh.org_code = '"+orgCode+"' AND d.enabled = 1 AND d.locked = 0 AND d.del = 1 AND dh.del = 1 AND dh.doctor_code = d.id";
 | 
	
		
			
				|  |  |         List<Map<String , Object>> mapList = jdbcTemplate.queryForList(sql);
 | 
	
		
			
				|  |  |         if (mapList.size()>0){
 | 
	
		
			
				|  |  |             String idcard = mapList.get(0).get("idcard").toString();
 | 
	
		
			
				|  |  |             if (StringUtils.isNotBlank(idcard)){
 | 
	
		
			
				|  |  |                 Integer age = IdCardUtil.getAgeForIdcard(idcard);
 | 
	
		
			
				|  |  |                 mapList.get(0).put("age",age);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             else {
 | 
	
		
			
				|  |  |                 mapList.get(0).put("age",null);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         object.put("doctorInfo",mapList.get(0));
 | 
	
		
			
				|  |  |         if (mapList.size() > 0){
 | 
	
		
			
				|  |  |             page = page - 1;
 |