| 
					
				 | 
			
			
				@@ -107,6 +107,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fBilltype != null  and fBilltype != ''">and f_billtype = #{fBilltype}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fBillstatus != null  and fBillstatus != ''">and f_billstatus = #{fBillstatus}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ORDER BY f_bsdate desc 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="selectWarehouseBusinessList" parameterType="TWarehousebills" resultType="Map"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -183,11 +185,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fBillstatus != null  and fBillstatus != ''">and bill.f_billstatus = #{fBillstatus}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="createBy != null and createBy != ''">and bill.create_by = #{createBy}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ORDER BY bill.f_bsdate desc 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="selectTWarehousebillsById" parameterType="Long" resultMap="TWarehousebillsResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <include refid="selectTWarehousebillsVo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where f_id = #{fId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ORDER BY f_bsdate desc 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <insert id="insertTWarehousebills" parameterType="TWarehousebills" useGeneratedKeys="true" keyProperty="fId"> 
			 |