| 
					
				 | 
			
			
				@@ -2265,13 +2265,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="map.tWareHouseFees.fFromDate != null ">and t.f_bsdate >= #{map.tWareHouseFees.fFromDate}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="map.tWareHouseFees.fToDate != null ">and t.f_bsdate <= #{map.tWareHouseFees.fToDate}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test='map.tWareHouseFees.fBilltype != null and map.tWareHouseFees.fBilltype != "" and map.tWareHouseFees.fBilltype == "KHDZ" '> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                and ifnull(w.f_amount, 0) - ifnull(w.f_accamount, 0) > 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                and abs(ifnull(w.f_amount, 0) - ifnull(w.f_accamount, 0)) > 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test='map.tWareHouseFees.fBilltype != null and map.tWareHouseFees.fBilltype != "" and map.tWareHouseFees.fBilltype == "KHSF" '> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                and ifnull(w.f_amount, 0) - ifnull(w.f_stlamount, 0) > 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                and abs(ifnull(w.f_amount, 0) - ifnull(w.f_stlamount, 0)) > 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test='map.tWareHouseFees.fBilltype != null and map.tWareHouseFees.fBilltype != "" and map.tWareHouseFees.fBilltype == "KHFF" '> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                and ifnull(w.f_amount, 0) - ifnull(w.f_stlamount, 0) > 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                and abs(ifnull(w.f_amount, 0) - ifnull(w.f_stlamount, 0)) > 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             GROUP BY w.f_id 
			 |