|  | @@ -477,8 +477,9 @@
 | 
	
		
			
				|  |  |              and item.f_billstatus = 40
 | 
	
		
			
				|  |  |              and item.f_storage_fee_deadline IS NULL
 | 
	
		
			
				|  |  |              and IF(ware.f_billtype = "SJCK", item.f_bsdate <#{warehouse.fBillingDeadline}, item.f_chargedate <= #{warehouse.fBillingDeadline})
 | 
	
		
			
				|  |  | -            <if test="warehouse.fGoodsid != null">and item.f_goodsid = #{warehouse.fGoodsid}</if>
 | 
	
		
			
				|  |  | -            <if test="warehouse.fMblno != null">and ware.f_mblno = #{warehouse.fMblno}</if>
 | 
	
		
			
				|  |  | +            <if test="warehouse.fGoodsid != null and warehouse.fGoodsid != ''">and item.f_goodsid = #{warehouse.fGoodsid}</if>
 | 
	
		
			
				|  |  | +            <if test="warehouse.fMblno != null and warehouse.fMblno != ''">and ware.f_mblno = #{warehouse.fMblno}</if>
 | 
	
		
			
				|  |  | +            <if test="warehouse.fWarehouseid != null and warehouse.fWarehouseid != ''">and ware.f_warehouseid = #{warehouse.fWarehouseid}</if>
 | 
	
		
			
				|  |  |             <!--  <if test="warehouse.fId != null">and item.f_id = #{warehouse.fId}</if> -->
 | 
	
		
			
				|  |  |          </where>
 | 
	
		
			
				|  |  |      </select>
 |