| 
															
																@ -2266,7 +2266,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        if ("0".equals(rs)) { 
															 | 
															
															 | 
															
																        if ("0".equals(rs)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            String admNo = jsonObject.getString("@ADM_NO"); 
															 | 
															
															 | 
															
																            String admNo = jsonObject.getString("@ADM_NO"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            String realOrder = jsonObject.getString("@real_order"); 
															 | 
															
															 | 
															
																            String realOrder = jsonObject.getString("@real_order"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            String voucherNo = jsonObject.getString("@xtgzh0"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            prescription.setAdmNo(admNo); 
															 | 
															
															 | 
															
																            prescription.setAdmNo(admNo); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            prescription.setRealOrder(realOrder); 
															 | 
															
															 | 
															
																            prescription.setRealOrder(realOrder); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            prescriptionDao.save(prescription); 
															 | 
															
															 | 
															
																            prescriptionDao.save(prescription); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -2274,6 +2274,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            outpatientDao.save(outpatientDO); 
															 | 
															
															 | 
															
																            outpatientDao.save(outpatientDO); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            result.put("code", 1); 
															 | 
															
															 | 
															
																            result.put("code", 1); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            result.put("voucherNo",voucherNo); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            result.put("mes", "开方提交成功"); 
															 | 
															
															 | 
															
																            result.put("mes", "开方提交成功"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            return result; 
															 | 
															
															 | 
															
																            return result; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -3181,6 +3182,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                BaseOrgDO org = baseOrgDao.findByCode(orgCode); 
															 | 
															
															 | 
															
																                BaseOrgDO org = baseOrgDao.findByCode(orgCode); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                if (org!=null){ 
															 | 
															
															 | 
															
																                if (org!=null){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    doctorHospitalDO.setWinNo(org.getWinNo()); 
															 | 
															
															 | 
															
																                    doctorHospitalDO.setWinNo(org.getWinNo()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    doctorHospitalDO.setHisId(org.getHisId()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    hospitalDOList.add(doctorHospitalDO); 
															 | 
															
															 | 
															
																                    hospitalDOList.add(doctorHospitalDO); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                } 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } 
															 | 
															
															 | 
															
																            } 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -6113,6 +6115,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        if (doctorHospitalDOS!=null&&doctorHospitalDOS.size()!=0){ 
															 | 
															
															 | 
															
																                        if (doctorHospitalDOS!=null&&doctorHospitalDOS.size()!=0){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            applyDepaName = doctorHospitalDOS.get(0).getDeptName(); 
															 | 
															
															 | 
															
																                            applyDepaName = doctorHospitalDOS.get(0).getDeptName(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        } 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        String voucherNo = map.get("voucherNo")+""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        String applyDoctorName = prescriptionDO.getDoctorName(); 
															 | 
															
															 | 
															
																                        String applyDoctorName = prescriptionDO.getDoctorName(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        BasePatientDO patientDO = basePatientDao.findById(patientCode); 
															 | 
															
															 | 
															
																                        BasePatientDO patientDO = basePatientDao.findById(patientCode); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        String userName = null; 
															 | 
															
															 | 
															
																                        String userName = null; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -6131,7 +6134,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            cardNo = outpatientDO.getCardNo(); 
															 | 
															
															 | 
															
																                            cardNo = outpatientDO.getCardNo(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        } 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        logger.info("cardNo:"+cardNo); 
															 | 
															
															 | 
															
																                        logger.info("cardNo:"+cardNo); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        ylzPayService.msgPush("01",cardNo,"01",patientDO.getMobile(),"00",userNo,userName,idcard,realerOrder,applyDepaName,applyDoctorName,recipeTime,free,"1"); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        ylzPayService.msgPush("01",cardNo,"01",patientDO.getMobile(),"00",userNo,userName,idcard,voucherNo,applyDepaName,applyDoctorName,recipeTime,free,"1"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    } 
															 | 
															
															 | 
															
																                    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    //sendHisDiagnosis(jsonData, outpatientDO, wlyyPrescriptionDO); 
															 | 
															
															 | 
															
																                    //sendHisDiagnosis(jsonData, outpatientDO, wlyyPrescriptionDO); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -6145,6 +6148,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            wlyyPrescriptionDO.setCheckReason(reason); 
															 | 
															
															 | 
															
																            wlyyPrescriptionDO.setCheckReason(reason); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            wlyyPrescriptionDO.setStatus(20); 
															 | 
															
															 | 
															
																            wlyyPrescriptionDO.setStatus(20); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            wlyyPrescriptionDO.setPrescribeTime(new Date()); 
															 | 
															
															 | 
															
																            wlyyPrescriptionDO.setPrescribeTime(new Date()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            wlyyPrescriptionDO.setId(prescriptionId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            //发送系统消息 处方支付提醒 
															 | 
															
															 | 
															
																            //发送系统消息 处方支付提醒 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            SystemMessageDO messageDO = new SystemMessageDO(); 
															 | 
															
															 | 
															
																            SystemMessageDO messageDO = new SystemMessageDO(); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -6175,6 +6179,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } 
															 | 
															
															 | 
															
																            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        }else{ 
															 | 
															
															 | 
															
																        }else{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            wlyyPrescriptionDO.setId(prescriptionId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            wlyyPrescriptionDO.setCheckStatus(status); 
															 | 
															
															 | 
															
																            wlyyPrescriptionDO.setCheckStatus(status); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            wlyyPrescriptionDO.setCheckReason(reason); 
															 | 
															
															 | 
															
																            wlyyPrescriptionDO.setCheckReason(reason); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            wlyyPrescriptionDO.setStatus(11); 
															 | 
															
															 | 
															
																            wlyyPrescriptionDO.setStatus(11); 
															 |