| 
					
				 | 
			
			
				@@ -28,10 +28,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="remark" column="remark"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="fTaskType" column="f_task_type"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="fDc" column="f_dc"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="fBilltype" column="f_billtype"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <sql id="selectTWarehouseAgreementVo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        select f_id, f_billno,f_contractno, f_deptid, f_corpid,f_goodsid, f_stltypeid, f_feetypeid, t_packages, f_trademodeid, f_freedays, f_begindate, f_enddate, f_billstatus,f_status, del_flag, create_by, create_time, update_by, update_time, remark,f_task_type,f_dc  from t_warehouse_agreement 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        select f_id, f_billno,f_contractno, f_deptid, f_corpid,f_goodsid, f_stltypeid, f_feetypeid, t_packages, f_trademodeid, f_freedays, f_begindate, f_enddate, f_billstatus,f_status, del_flag, create_by, create_time, update_by, update_time, remark,f_task_type,f_dc,f_billtype  from t_warehouse_agreement 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="selectTWarehouseAgreementList" parameterType="TWarehouseAgreement" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -53,6 +54,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fTaskType != null ">and f_task_type = #{fTaskType}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fBillstatus != null  and fBillstatus != ''">and f_billstatus = #{fBillstatus}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fStatus != null  and fStatus != ''">and f_status = #{fStatus}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="fBilltype != null  and fBilltype != ''">and f_billtype like concat('%', #{fBilltype}, '%')</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -93,6 +95,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fEnddate != null ">and agre.f_enddate = #{fEnddate}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fBillstatus != null  and fBillstatus != ''">and agre.f_billstatus = #{fBillstatus}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fStatus != null  and fStatus != ''">and agre.f_status = #{fStatus}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="fBilltype != null  and fBilltype != ''">and agre.f_billtype like concat('%', #{fBilltype}, '%')</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -127,6 +130,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="remark != null">remark,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fTaskType != null">f_task_type,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fDc != null">f_dc,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="fBilltype != null">f_billtype,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <trim prefix="values (" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fBillno != null and fBillno != ''">#{fBillno},</if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -151,6 +155,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="remark != null">#{remark},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fTaskType != null">#{fTaskType},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fDc != null">#{fDc},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="fBilltype != null">#{fBilltype},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -179,6 +184,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="remark != null">remark = #{remark},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fTaskType != null">f_task_type = #{fTaskType},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="fDc != null">f_dc = #{fDc},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="fBilltype != null">f_billtype = #{fBilltype},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where f_id = #{fId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </update> 
			 |