|  | @ -113,7 +113,7 @@ public class XzzxEntranceService{
 | 
												
													
														
															|  |     @Autowired
 |  |     @Autowired
 | 
												
													
														
															|  |     private BasePatientDao basePatientDao;
 |  |     private BasePatientDao basePatientDao;
 | 
												
													
														
															|  |     @Autowired
 |  |     @Autowired
 | 
												
													
														
															|  |     private PrescriptionCheckDao prescriptionCheckDao;
 |  | 
 | 
												
													
														
															|  | 
 |  |     private BaseDoctorHospitalDao baseDoctorHospitalDao;
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
											
												
													
														
															|  | @ -1372,7 +1372,6 @@ public class XzzxEntranceService{
 | 
												
													
														
															|  |         if (!StringUtils.isEmpty(DiagnosisCode)){
 |  |         if (!StringUtils.isEmpty(DiagnosisCode)){
 | 
												
													
														
															|  |             condition += "<DiagnosisCode>"+DiagnosisCode+"</DiagnosisCode>";
 |  |             condition += "<DiagnosisCode>"+DiagnosisCode+"</DiagnosisCode>";
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         condition+="<ChnSymPtomsCode>"+"</ChnSymPtomsCode>";
 |  |         condition+="<ChnSymPtomsCode>"+"</ChnSymPtomsCode>";
 | 
												
													
														
															|  |         condition+="<ChnSymPtomsName>"+"</ChnSymPtomsName>";
 |  |         condition+="<ChnSymPtomsName>"+"</ChnSymPtomsName>";
 | 
												
													
														
															|  |         condition+="<ChnDiagnosisCode>"+"</ChnDiagnosisCode>";
 |  |         condition+="<ChnDiagnosisCode>"+"</ChnDiagnosisCode>";
 | 
												
											
												
													
														
															|  | @ -1509,13 +1508,12 @@ public class XzzxEntranceService{
 | 
												
													
														
															|  |             for (WlyyPrescriptionInfoDO wlyyPrescriptionInfoDO:infos){
 |  |             for (WlyyPrescriptionInfoDO wlyyPrescriptionInfoDO:infos){
 | 
												
													
														
															|  |                 int i = 1;
 |  |                 int i = 1;
 | 
												
													
														
															|  |                 stringBuffer.append("<Advice REPEAT=\"1\" DRUG_LO_NAME=\""+wlyyPrescriptionInfoDO.getDrugName()+
 |  |                 stringBuffer.append("<Advice REPEAT=\"1\" DRUG_LO_NAME=\""+wlyyPrescriptionInfoDO.getDrugName()+
 | 
												
													
														
															|  |                         "\" DRUG_LO_ID=\""+wlyyPrescriptionInfoDO.getHisCode()+
 |  | 
 | 
												
													
														
															|  |                         "\" ADMINISTRATION=\""+wlyyPrescriptionInfoDO.getSupplyName()+
 |  | 
 | 
												
													
														
															|  | 
 |  |                         "\" DRUG_LO_ID=\""+wlyyPrescriptionInfoDO.getHisCode()+"\" ADMINISTRATION=\""+wlyyPrescriptionInfoDO.getSupplyName()+
 | 
												
													
														
															|  |                         "\" DOSAGE=\""+wlyyPrescriptionInfoDO.getDosage()+
 |  |                         "\" DOSAGE=\""+wlyyPrescriptionInfoDO.getDosage()+
 | 
												
													
														
															|  |                         "\" DOSAGE_UNIT=\""+wlyyPrescriptionInfoDO.getUnitName()+
 |  |                         "\" DOSAGE_UNIT=\""+wlyyPrescriptionInfoDO.getUnitName()+
 | 
												
													
														
															|  |                         "\" FREQ_COUNT=\""+wlyyPrescriptionInfoDO.getUsageCode()+
 |  |                         "\" FREQ_COUNT=\""+wlyyPrescriptionInfoDO.getUsageCode()+
 | 
												
													
														
															|  |                         "\" FREQ_INTERVAL=\"\" FREQ_INTERVAL_UNIT=\"\" START_DAY=\""+patientAndDoctor.getString("CREATE_DATE")+"\" END_DAY=\"\" DEPT_CODE=\""+patientAndDoctor.getString("DEPT_CODE")+
 |  | 
 | 
												
													
														
															|  |                         "\" DOCTOR_NAME=\""+patientAndDoctor.getString("DOCTOR_NAME")+
 |  | 
 | 
												
													
														
															|  | 
 |  |                         "\" FREQ_INTERVAL=\"\" FREQ_INTERVAL_UNIT=\"\" START_DAY=\""+patientAndDoctor.getString("CREATE_DATE")+"\" END_DAY=\"\"" +
 | 
												
													
														
															|  | 
 |  |                         " DEPT_CODE=\""+patientAndDoctor.getString("DEPT_CODE")+"\" DOCTOR_NAME=\""+patientAndDoctor.getString("DOCTOR_NAME")+
 | 
												
													
														
															|  |                         "\" ORDER_NO=\""+i+
 |  |                         "\" ORDER_NO=\""+i+
 | 
												
													
														
															|  |                         "\" ORDER_SUB_NO=\""+1+"\" AUTHORITY_LEVELS=\"\" ALERT_LEVELS=\"\" TITLE=\""+patientAndDoctor.getString("POSITION") +
 |  |                         "\" ORDER_SUB_NO=\""+1+"\" AUTHORITY_LEVELS=\"\" ALERT_LEVELS=\"\" TITLE=\""+patientAndDoctor.getString("POSITION") +
 | 
												
													
														
															|  |                         "\" GROUP_ID=\""+wlyyPrescriptionInfoDO.getFrequency()+"\" USER_ID=\""+patientAndDoctor.getString("doctorId")+
 |  |                         "\" GROUP_ID=\""+wlyyPrescriptionInfoDO.getFrequency()+"\" USER_ID=\""+patientAndDoctor.getString("doctorId")+
 | 
												
											
												
													
														
															|  | @ -3371,13 +3369,16 @@ public Map checkSyncHis(String IoFlag,String PayCardNo,String NullahNumber,Strin
 | 
												
													
														
															|  |         JSONObject jsonObject = new JSONObject();
 |  |         JSONObject jsonObject = new JSONObject();
 | 
												
													
														
															|  |         //先查询处方获得支付方式
 |  |         //先查询处方获得支付方式
 | 
												
													
														
															|  |         DoctorMappingDO doctorMappingDO = doctorMappingDao.findByDoctor(doctor);
 |  |         DoctorMappingDO doctorMappingDO = doctorMappingDao.findByDoctor(doctor);
 | 
												
													
														
															|  | 
 |  |         List<BaseDoctorHospitalDO> baseDoctorHospitalDO = baseDoctorHospitalDao.findByDoctorCode(doctor);
 | 
												
													
														
															|  |         BaseDoctorDO baseDoctorDO = baseDoctorDao.findById(doctor);
 |  |         BaseDoctorDO baseDoctorDO = baseDoctorDao.findById(doctor);
 | 
												
													
														
															|  |         if (null != doctorMappingDO && null != baseDoctorDO) {
 |  |         if (null != doctorMappingDO && null != baseDoctorDO) {
 | 
												
													
														
															|  |             jsonObject.put("DOCTOR_ID", doctorMappingDO.getMappingCode());
 |  |             jsonObject.put("DOCTOR_ID", doctorMappingDO.getMappingCode());
 | 
												
													
														
															|  |             jsonObject.put("POSITION", baseDoctorDO.getJobTitleName());
 |  |             jsonObject.put("POSITION", baseDoctorDO.getJobTitleName());
 | 
												
													
														
															|  |             jsonObject.put("DOCTOR_NAME", baseDoctorDO.getName());
 |  |             jsonObject.put("DOCTOR_NAME", baseDoctorDO.getName());
 | 
												
													
														
															|  |             jsonObject.put("DEPT_CODE", baseDoctorDO.getVisitDept());
 |  | 
 | 
												
													
														
															|  |             jsonObject.put("DEPT_NAME", baseDoctorDO.getVisitDeptName());
 |  | 
 | 
												
													
														
															|  | 
 |  |             if (null!=baseDoctorHospitalDO&&baseDoctorHospitalDO.size()>0){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("DEPT_CODE", baseDoctorHospitalDO.get(0).getDeptCode());
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("DEPT_NAME", baseDoctorHospitalDO.get(0).getDeptName());
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         PatientMappingDO patientMappingDO = patientMappingDao.findByPatient(patient);
 |  |         PatientMappingDO patientMappingDO = patientMappingDao.findByPatient(patient);
 | 
												
													
														
															|  |         BasePatientDO basePatientDO = patientDao.findById(patient);
 |  |         BasePatientDO basePatientDO = patientDao.findById(patient);
 |