| 
														
															@@ -308,4 +308,27 @@ public interface YpZyPatientMapper { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }) 
														 | 
														
														 | 
														
															     }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     List<YpZyPatient> selectYpZyPatientForByj(@Param("pageNo") Integer pageNo); 
														 | 
														
														 | 
														
															     List<YpZyPatient> selectYpZyPatientForByj(@Param("pageNo") Integer pageNo); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    /** 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+     * 根据唯一键信息查询药单明细 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+     * @param ypZyPatient 病人发药药单明细信息 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+     * @return int 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+     */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    @Select(" select count(*) from yp_zy_patient WITH(NOLOCK) where order_date = #{orderDate} and dept_code = #{deptCode} " + 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            " and ward_code = #{wardCode} and charge_code = #{chargeCode} and amount = #{amount} " + 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            " and act_order_no = #{actOrderNo} and group_no = #{groupNo} and page_no = #{pageNo} " + 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            " and inpatient_no =#{inpatientNo} and admiss_times = #{admissTimes} ") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    int selectYpZyPatientRepetition(YpZyPatient ypZyPatient); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    /** 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+     * 增加药品数量 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+     * @param ypZyPatient 病人发药药单明细信息 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+     * @return int 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+     */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    @Update(" update yp_zy_patient set amount = amount + #{amount,jdbcType=DECIMAL} where order_date = #{orderDate} and dept_code = #{deptCode} " + 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            " and ward_code = #{wardCode} and charge_code = #{chargeCode} and amount = #{amount} " + 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            " and act_order_no = #{actOrderNo} and group_no = #{groupNo} and page_no = #{pageNo} " + 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            " and inpatient_no = #{inpatientNo} and admiss_times = #{admissTimes} ") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    int updateYpZyPatientAmount(YpZyPatient ypZyPatient); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 |