| 
					
				 | 
			
			
				@@ -264,4 +264,48 @@ public interface YpZyPatientMapper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     List<YzYpZyOrder> selectYpZyPatientFy(@Param("pageNo") String pageNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @description: 手动使用摆药机根据药单号查询发药明细 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @author: hsh 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @date: 2023/11/7 10:45 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param: [pageNo] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return: List<YpZyPatient> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     **/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Select({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "select charge_code=rtrim(a.charge_code) ,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       serial =a.serial ,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       amount =a.amount ,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       retprice =a.retprice,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       page_no =a.page_no,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       inpatient_no=rtrim(a.inpatient_no),\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       admiss_times=a.admiss_times,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       act_order_no=a.act_order_no,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       occ_time =a.order_date,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       order_date=a.order_date,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       name =a.name,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       bed_no =a.bed_no,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       ward_code =a.ward_code,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       dept_code =a.dept_code,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       infant_flag =a.infant_flag,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       drawer =a.drawer,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       always_flag =a.always_flag,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       self_flag =a.self_flag,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       separate_flag=a.separate_flag,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       suprice_flag =a.suprice_flag,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       drug_flag =a.drug_flag,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       pay_self =a.pay_self,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       doctor_name =a.doctor_name,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       zy_serial_no =a.zy_serial_no,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       group_no=a.group_no,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       doctor_name=a.doctor_name,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       page_class=a.page_type,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       drug_class=a.drug_class,\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "       confirm_time=a.confirm_time\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "from yp_zy_patient a WITH(NOLOCK)" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    " where  a.page_no = #{pageNo} " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "  and a.amount > 0 " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    "order by a.confirm_time " 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    List<YpZyPatient> selectYpZyPatientForByj(@Param("pageNo") Integer pageNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |