|  | @ -73,7 +73,7 @@ public class TnyyEntranceService {
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     //同步科室
 |  |     //同步科室
 | 
												
													
														
															|  |     public String updateTnyyDept() throws Exception {
 |  |     public String updateTnyyDept() throws Exception {
 | 
												
													
														
															|  |         String sql = "select KSDM,KSMC,PYDM,PLSX,JGBM from GY_KSDM ";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String sql = "select KSDM,KSMC,PYDM,PLSX,JGBM from GY_KSDM  ";
 | 
												
													
														
															|  |         Map<String,Object> params = new HashedMap();
 |  |         Map<String,Object> params = new HashedMap();
 | 
												
													
														
															|  |         params.put("sql",sql);
 |  |         params.put("sql",sql);
 | 
												
													
														
															|  |         logger.info("updateTnyyDept:"+sql);
 |  |         logger.info("updateTnyyDept:"+sql);
 | 
												
											
												
													
														
															|  | @ -114,7 +114,7 @@ public class TnyyEntranceService {
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     //更新泰安医生信息
 |  |     //更新泰安医生信息
 | 
												
													
														
															|  |     public String updateTnyyDoctor(String idCard)throws Exception{
 |  |     public String updateTnyyDoctor(String idCard)throws Exception{
 | 
												
													
														
															|  |         String sql ="select sfzh,LXDH,YGDM,KSDM,YGXM,YGXB,CSNY,YSJJ from GY_YGDM where ZFPB=1 and sfzh is not null ";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String sql ="select sfzh,LXDH,YGDM,KSDM,YGXM,YGXB,CSNY,YSJJ from GY_YGDM where ZFPB=0 and sfzh is not null and len(ygbh) =3 and ksyq >0 and ksdm <> '2118' ";
 | 
												
													
														
															|  |         if (StringUtils.isNoneBlank(idCard)){
 |  |         if (StringUtils.isNoneBlank(idCard)){
 | 
												
													
														
															|  |             sql +=" and sfzh ='"+idCard+"' ";
 |  |             sql +=" and sfzh ='"+idCard+"' ";
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
											
												
													
														
															|  | @ -152,6 +152,7 @@ public class TnyyEntranceService {
 | 
												
													
														
															|  | //                            doctor.setExpertise(doctorJson.getString("expertise"));
 |  | //                            doctor.setExpertise(doctorJson.getString("expertise"));
 | 
												
													
														
															|  | //                            doctor.setIntroduce(doctorJson.getString("introduce"));
 |  | //                            doctor.setIntroduce(doctorJson.getString("introduce"));
 | 
												
													
														
															|  | //                            doctor.setMobile(doctorJson.getString("mobile"));
 |  | //                            doctor.setMobile(doctorJson.getString("mobile"));
 | 
												
													
														
															|  | 
 |  |                             doctor.setMobile(doctorJson.getString("LXDH"));
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |                             BaseDoctorDO temp = baseDoctorDao.save(doctor);
 |  |                             BaseDoctorDO temp = baseDoctorDao.save(doctor);
 | 
												
													
														
															|  | 
 |  | 
 | 
												
											
												
													
														
															|  | @ -173,6 +174,7 @@ public class TnyyEntranceService {
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |                             doctor.setSex(Integer.parseInt(IdCardUtil.getSexForIdcard_new(idcard)));
 |  |                             doctor.setSex(Integer.parseInt(IdCardUtil.getSexForIdcard_new(idcard)));
 | 
												
													
														
															|  |                             doctor.setBirthday(IdCardUtil.getBirthdayForIdcard(idcard));
 |  |                             doctor.setBirthday(IdCardUtil.getBirthdayForIdcard(idcard));
 | 
												
													
														
															|  | 
 |  |                             doctor.setMobile(doctorJson.getString("LXDH"));
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |                             doctor.setProvinceCode("370000");
 |  |                             doctor.setProvinceCode("370000");
 | 
												
													
														
															|  |                             doctor.setProvinceName("山东省");
 |  |                             doctor.setProvinceName("山东省");
 | 
												
											
												
													
														
															|  | @ -202,7 +204,7 @@ public class TnyyEntranceService {
 | 
												
													
														
															|  |                             BaseDoctorHospitalDO hospitalDO = new BaseDoctorHospitalDO();
 |  |                             BaseDoctorHospitalDO hospitalDO = new BaseDoctorHospitalDO();
 | 
												
													
														
															|  |                             hospitalDO.setDoctorCode(temp.getId());
 |  |                             hospitalDO.setDoctorCode(temp.getId());
 | 
												
													
														
															|  |                             hospitalDO.setOrgCode(orgCode);
 |  |                             hospitalDO.setOrgCode(orgCode);
 | 
												
													
														
															|  |                             hospitalDO.setOrgName("泰安中医院");
 |  | 
 | 
												
													
														
															|  | 
 |  |                             hospitalDO.setOrgName("泰安市中医医院");
 | 
												
													
														
															|  |                             hospitalDO.setDeptCode(doctorJson.getString("KSDM"));
 |  |                             hospitalDO.setDeptCode(doctorJson.getString("KSDM"));
 | 
												
													
														
															|  |                             hospitalDO.setDel("1");
 |  |                             hospitalDO.setDel("1");
 | 
												
													
														
															|  |                             baseDoctorHospitalDao.save(hospitalDO);
 |  |                             baseDoctorHospitalDao.save(hospitalDO);
 |