|  | @@ -89,6 +89,7 @@
 | 
	
		
			
				|  |  |          <result property="fPaymode" column="f_paymode"/>
 | 
	
		
			
				|  |  |          <result property="fLaneid" column="f_laneid"/>
 | 
	
		
			
				|  |  |          <result property="fCntval" column="f_cntval"/>
 | 
	
		
			
				|  |  | +        <result property="freeContainerDate" column="free_container_date"/>
 | 
	
		
			
				|  |  |      </resultMap>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <sql id="selectTWarehousebillsVo">
 | 
	
	
		
			
				|  | @@ -98,8 +99,8 @@
 | 
	
		
			
				|  |  |          f_billtype, f_billstatus, f_items_status, del_flag, create_by, create_time, update_by, update_time, remark, f_billing_deadline, f_product_name, f_review_date,
 | 
	
		
			
				|  |  |          f_truckno, f_driver_name, f_driver_tel, f_driver_id_car, f_business_type, f_labour, f_fleet, f_inwarehouseid, f_bstime, f_cartype, f_goodsid, f_new_trademodeid,
 | 
	
		
			
				|  |  |          f_loadportid, f_destportid, f_serviceitems, f_invoceobj, f_sign, f_detentioncargo, f_booksmarks, f_shippername, f_shipperattn, f_shippertel, f_consigneername,
 | 
	
		
			
				|  |  | -        f_consigneeattn, f_consigneetel, f_insurance, f_insuranceamt, f_closedate, f_docmentdate, f_vslid, f_voyid, f_typeid, f_paymode, f_laneid, f_cntval
 | 
	
		
			
				|  |  | -        from t_warehousebills
 | 
	
		
			
				|  |  | +        f_consigneeattn, f_consigneetel, f_insurance, f_insuranceamt, f_closedate, f_docmentdate, f_vslid, f_voyid, f_typeid, f_paymode, f_laneid, f_cntval,
 | 
	
		
			
				|  |  | +        free_container_date from t_warehousebills
 | 
	
		
			
				|  |  |      </sql>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="selectTWarehousebillsList" parameterType="TWarehousebills" resultMap="TWarehousebillsResult">
 | 
	
	
		
			
				|  | @@ -198,7 +199,8 @@
 | 
	
		
			
				|  |  |              bill.f_grossweight AS fGrossweight,
 | 
	
		
			
				|  |  |              bill.f_product_name AS fProductName,
 | 
	
		
			
				|  |  |              bill.f_billing_deadline AS fBillingDeadline,
 | 
	
		
			
				|  |  | -            CASE WHEN bill.f_billstatus = '1' THEN '录入'
 | 
	
		
			
				|  |  | +            bill.free_container_date AS freeContainerDate,
 | 
	
		
			
				|  |  | +        CASE WHEN bill.f_billstatus = '1' THEN '录入'
 | 
	
		
			
				|  |  |              WHEN bill.f_billstatus = '2' THEN '暂存'
 | 
	
		
			
				|  |  |              WHEN bill.f_billstatus = '3' THEN '驳回'
 | 
	
		
			
				|  |  |              WHEN bill.f_billstatus = '4' THEN '请核'
 | 
	
	
		
			
				|  | @@ -291,6 +293,12 @@
 | 
	
		
			
				|  |  |              <if test='timeInterval != null and timeInterval[1] != null and timeInterval[1]!= ""'>
 | 
	
		
			
				|  |  |                  and bill.f_bsdate <= #{timeInterval[1]}
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  | +            <if test='freeContainerList != null and freeContainerList[0] != null and freeContainerList[0]!= ""'>
 | 
	
		
			
				|  |  | +                and bill.free_container_date >= #{freeContainerList[0]}
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  | +            <if test='freeContainerList != null and freeContainerList[1] != null and freeContainerList[1]!= ""'>
 | 
	
		
			
				|  |  | +                and bill.free_container_date <= #{freeContainerList[1]}
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  |              <if test="fGoodsid != null  and fGoodsid != ''">and item.f_goodsid = #{fGoodsid}</if>
 | 
	
		
			
				|  |  |              <if test="fContacts != null  and fContacts != ''">and bill.f_contacts = #{fContacts}</if>
 | 
	
		
			
				|  |  |              <if test="fTel != null  and fTel != ''">and bill.f_tel = #{fTel}</if>
 | 
	
	
		
			
				|  | @@ -380,6 +388,7 @@
 | 
	
		
			
				|  |  |          bill.f_grossweight AS fGrossweight,
 | 
	
		
			
				|  |  |          bill.f_product_name AS fProductName,
 | 
	
		
			
				|  |  |          bill.f_billing_deadline AS fBillingDeadline,
 | 
	
		
			
				|  |  | +        bill.free_container_date AS freeContainerDate,
 | 
	
		
			
				|  |  |          CASE
 | 
	
		
			
				|  |  |          WHEN bill.f_billtype = 'HQZY' AND bill.f_billstatus = '1' THEN '录入'
 | 
	
		
			
				|  |  |          WHEN bill.f_billtype = 'HQZY' AND bill.f_billstatus = '2' THEN '暂存'
 | 
	
	
		
			
				|  | @@ -447,6 +456,12 @@
 | 
	
		
			
				|  |  |              <if test='timeInterval != null and timeInterval[1] != null and timeInterval[1]!= ""'>
 | 
	
		
			
				|  |  |                  and bill.f_bsdate <= #{timeInterval[1]}
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  | +            <if test='freeContainerList != null and freeContainerList[0] != null and freeContainerList[0]!= ""'>
 | 
	
		
			
				|  |  | +                and bill.free_container_date >= #{freeContainerList[0]}
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  | +            <if test='freeContainerList != null and freeContainerList[1] != null and freeContainerList[1]!= ""'>
 | 
	
		
			
				|  |  | +                and bill.free_container_date <= #{freeContainerList[1]}
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  |              <if test="fGoodsid != null  and fGoodsid != ''">and item.f_goodsid = #{fGoodsid}</if>
 | 
	
		
			
				|  |  |              <if test="fContacts != null  and fContacts != ''">and bill.f_contacts = #{fContacts}</if>
 | 
	
		
			
				|  |  |              <if test="fTel != null  and fTel != ''">and bill.f_tel = #{fTel}</if>
 | 
	
	
		
			
				|  | @@ -817,6 +832,7 @@
 | 
	
		
			
				|  |  |              <if test="fPaymode != null">f_paymode,</if>
 | 
	
		
			
				|  |  |              <if test="fLaneid != null">f_laneid,</if>
 | 
	
		
			
				|  |  |              <if test="fCntval != null">f_cntval,</if>
 | 
	
		
			
				|  |  | +            <if test="freeContainerDate != null">free_container_date,</if>
 | 
	
		
			
				|  |  |          </trim>
 | 
	
		
			
				|  |  |          <trim prefix="values (" suffix=")" suffixOverrides=",">
 | 
	
		
			
				|  |  |              <if test="fBillno != null">#{fBillno},</if>
 | 
	
	
		
			
				|  | @@ -902,6 +918,7 @@
 | 
	
		
			
				|  |  |              <if test="fPaymode != null">#{fPaymode},</if>
 | 
	
		
			
				|  |  |              <if test="fLaneid != null">#{fLaneid},</if>
 | 
	
		
			
				|  |  |              <if test="fCntval != null">#{fCntval},</if>
 | 
	
		
			
				|  |  | +            <if test="freeContainerDate != null">#{freeContainerDate},</if>
 | 
	
		
			
				|  |  |          </trim>
 | 
	
		
			
				|  |  |      </insert>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -991,9 +1008,11 @@
 | 
	
		
			
				|  |  |              <if test="fPaymode != null">f_paymode = #{fPaymode},</if>
 | 
	
		
			
				|  |  |              <if test="fLaneid != null">f_laneid = #{fLaneid},</if>
 | 
	
		
			
				|  |  |              <if test="fCntval != null">f_cntval = #{fCntval},</if>
 | 
	
		
			
				|  |  | +            <if test="freeContainerDate != null">free_container_date = #{freeContainerDate},</if>
 | 
	
		
			
				|  |  |          </trim>
 | 
	
		
			
				|  |  |          where f_id = #{fId}
 | 
	
		
			
				|  |  |      </update>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      <update id="updateKaHeOrder" parameterType="TWarehousebills">
 | 
	
		
			
				|  |  |          update t_warehousebills
 | 
	
		
			
				|  |  |          <trim prefix="SET" suffixOverrides=",">
 | 
	
	
		
			
				|  | @@ -1081,6 +1100,7 @@
 | 
	
		
			
				|  |  |              <if test="fPaymode != null">f_paymode = #{fPaymode},</if>
 | 
	
		
			
				|  |  |              <if test="fLaneid != null">f_laneid = #{fLaneid},</if>
 | 
	
		
			
				|  |  |              <if test="fTypeid != null">f_typeid = #{fTypeid},</if>
 | 
	
		
			
				|  |  | +            <if test="freeContainerDate != null">free_container_date = #{freeContainerDate},</if>
 | 
	
		
			
				|  |  |          </trim>
 | 
	
		
			
				|  |  |          where f_id = #{fId}
 | 
	
		
			
				|  |  |      </update>
 |