| 
					
				 | 
			
			
				@@ -114,6 +114,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="fUpdeteStatus"    column="f_updete_status"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="fSubmitUpdate"    column="f_submit_update"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="fDeleteStatus"    column="f_delete_status"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="fRemarksFees"    column="f_remarks_fees"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <sql id="selectTWarehousebillsVo"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -126,7 +127,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         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, f_business_attribution, f_supervision_unit, f_declaration_elements, f_part_number, f_ifinspection, f_value, f_weighing_date, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         f_ifsampling, send_sample_date, f_ifweight_recovery, weight_recovery_date, warehouse_status, f_times ,f_date_changed, f_chargetype,f_weigh_weight, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-               f_predict_branch,f_grade,f_delivery_details,f_salesman_id,f_itemstatus,f_updete_status, f_submit_update, f_delete_status from t_warehousebills 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               f_predict_branch,f_grade,f_delivery_details,f_salesman_id,f_itemstatus,f_updete_status, f_submit_update, f_delete_status,f_remarks_fees from t_warehousebills 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="selectTWarehousebillsList" parameterType="TWarehousebills" resultMap="TWarehousebillsResult"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -287,7 +288,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             END AS fItemsStatus, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             bill.f_billno AS fBillno, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             g.f_name AS fGoodsid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            bill.f_storekeeper AS fStorekeeper 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            bill.f_storekeeper AS fStorekeeper, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            bill.f_remarks_fees AS fRemarksFees 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         FROM 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             t_warehousebills bill 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             LEFT JOIN t_goods g ON g.f_id = bill.f_goodsid 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -304,6 +306,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             bill.f_typeid IS NULL 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fBillno != null  and fBillno != ''">and bill.f_billno like concat('%', #{fBillno}, '%')</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="fTruckno != null  and fTruckno != ''">and item.f_truckno like concat('%', #{fTruckno}, '%')</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fCustomsdeclartion != null  and fCustomsdeclartion != ''">and bill.f_customsdeclartion = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 #{fCustomsdeclartion} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -449,7 +452,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         AS fItemsStatus, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         bill.f_billno AS fBillno, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         g.f_name AS fGoodsid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        bill.f_storekeeper AS fStorekeeper 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        bill.f_storekeeper AS fStorekeeper, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        bill.f_remarks_fees AS fRemarksFees 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         FROM 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         t_warehousebills bill 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         LEFT JOIN t_goods g ON g.f_id = bill.f_goodsid 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -468,6 +472,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND dict.dict_type = 'data_trademodes' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND bill.f_typeid IS NULL 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fBillno != null  and fBillno != ''">and bill.f_billno like concat('%', #{fBillno}, '%')</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="fTruckno != null  and fTruckno != ''">and item.f_truckno like concat('%', #{fTruckno}, '%')</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fCustomsdeclartion != null  and fCustomsdeclartion != ''">and bill.f_customsdeclartion = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 #{fCustomsdeclartion} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -885,6 +890,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fUpdeteStatus != null">f_updete_status,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fSubmitUpdate != null">f_submit_update,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fDeleteStatus != null">f_delete_status,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="fRemarksFees != null">f_remarks_fees,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <trim prefix="values (" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fBillno != null">#{fBillno},</if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -995,6 +1001,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fUpdeteStatus != null">#{fUpdeteStatus},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fSubmitUpdate != null">#{fSubmitUpdate},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fDeleteStatus != null">#{fDeleteStatus},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="fRemarksFees != null">#{fRemarksFees},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1109,6 +1116,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fUpdeteStatus != null">f_updete_status = #{fUpdeteStatus},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fSubmitUpdate != null">f_submit_update = #{fSubmitUpdate},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fDeleteStatus != null">f_delete_status = #{fDeleteStatus},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="fRemarksFees != null">f_remarks_fees = #{fRemarksFees},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where f_id = #{fId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </update> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1225,6 +1233,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fUpdeteStatus != null">f_updete_status = #{fUpdeteStatus},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fSubmitUpdate != null">f_submit_update = #{fSubmitUpdate},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fDeleteStatus != null">f_delete_status = #{fDeleteStatus},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="fRemarksFees != null">f_remarks_fees = #{fRemarksFees},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where f_id = #{fId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </update> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2512,5 +2521,23 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             )a, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             (SELECT @rank:= 0) b 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="selectTWarehousebillsByIds" parameterType="String" resultMap="TWarehousebillsResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        select f_id,f_vslid, f_voyid from t_warehousebills 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where f_id = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <foreach item="fId" collection="array" open="(" separator="," close=")"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{fId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <update id="updateTWarehousebillsByIds"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        update 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        t_warehousebills 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        SET 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        f_vslid = #{fVslid}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        f_voyid = #{fVoyid} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where f_id = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <foreach item="fId" collection="array" open="(" separator="," close=")"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{fId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </mapper> 
			 |