| 
					
				 | 
			
			
				@ -4829,6 +4829,63 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       return entranceService.BS10008(idcard,patientId,admitNum,ybcard,demoFlag); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 查找未配送处方订单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public List<WlyyPrescriptionVO> findUndeliveredList(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql ="SELECT " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.id AS \"id\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.real_order AS \"realOrder\"," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.origin_real_order AS \"originRealOrder\"," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.adm_no AS \"admNo\"," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.origin_adm_no AS \"originAdmNo\"," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.serial_no AS \"serialNo\"," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.type AS \"type\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.patient_code AS \"patientCode\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.patient_name AS \"patientName\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.ssc AS \"ssc\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.doctor AS \"doctor\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.doctor_name AS \"doctorName\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.status AS \"status\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.mk_fail_reason AS \"mkFailReason\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.mk_time AS \"mk_time\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.prescribe_reason AS \"prescribeReason\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.prescribe_time AS \"prescribeTime\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.pay_time AS \"payTime\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.dosage_time AS \"dosageTime\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.finish_time AS \"finishTime\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.create_time AS \"createTime\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.dept AS \"dept\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.dept_name AS \"deptName\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.hospital AS \"hospital\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.hospital_name AS \"hospitalName\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.consult AS \"consult\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.dispensary_type AS \"dispensaryType\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.reason AS \"reason\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.remark AS \"remark\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.cancel_reason AS \"cancelReason\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.ca_cert_data AS \"caCertData\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.ca_message AS \"caMessage\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.digital_sign_no AS \"digitalSignNo\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.original_data_abstract AS \"originalDataAbstract\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.str_original_data AS \"strOriginalData\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.his_dept_code AS \"hisDeptCode\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.his_doctor_code AS \"hisDoctorCode\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.his_gister_type_code AS \"hisGisterTypeCode\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.his_rate_type_code AS \"hisRateTypeCode\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.his_hospital AS \"hisHospital\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.his_register_fee AS \"hisRegisterFee\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.pay_status AS \"payStatus\" " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " FROM " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " wlyy_prescription p " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " WHERE status = 60 or status = 50 "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<WlyyPrescriptionVO> list = jdbcTemplate.query(sql, new BeanPropertyRowMapper(WlyyPrescriptionVO.class)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(list!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return list; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 获取医生信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param hospital 
			 |