|  | @@ -38,7 +38,9 @@
 | 
	
		
			
				|  |  |      </resultMap>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <sql id="selectTWarehousebillsitemsVo">
 | 
	
		
			
				|  |  | -        select f_id, f_pid, f_lineno, f_goodsid, f_warehouselocid, f_originalbillno, f_mblno, f_bsdate, f_boxno, f_cntqty, f_goodsval, f_cntrtype, f_planqty, f_planvolumn, f_packagespecs, f_plangrossweight, f_plannetweight, f_qty, f_volumn, f_grossweight, f_netweight, f_cntrno, f_truckno, f_billstatus, del_flag, create_by, create_time, update_by, update_time, remark from t_warehousebillsitems
 | 
	
		
			
				|  |  | +        select f_id, f_pid, f_lineno, f_goodsid, f_warehouselocid, f_originalbillno, f_mblno, f_bsdate, f_boxno, f_cntqty,
 | 
	
		
			
				|  |  | +         f_goodsval, f_cntrtype, f_planqty, f_planvolumn, f_packagespecs, f_plangrossweight, f_plannetweight, f_qty, f_volumn, f_grossweight, f_netweight,
 | 
	
		
			
				|  |  | +          f_cntrno, f_truckno, f_billstatus, del_flag, create_by, create_time, update_by, update_time, remark from t_warehousebillsitems
 | 
	
		
			
				|  |  |      </sql>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="selectTWarehousebillsitemsList" parameterType="TWarehousebillsitems"
 | 
	
	
		
			
				|  | @@ -71,6 +73,44 @@
 | 
	
		
			
				|  |  |          </where>
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    <select id="selectGoodsTransferitemsList" parameterType="TWarehousebillsitems" resultType="Map">
 | 
	
		
			
				|  |  | +        select
 | 
	
		
			
				|  |  | +            item.f_id AS fId,
 | 
	
		
			
				|  |  | +            item.f_pid AS fPid,
 | 
	
		
			
				|  |  | +            item.f_lineno AS fLineno,
 | 
	
		
			
				|  |  | +            item.f_goodsid AS fGoodsid,
 | 
	
		
			
				|  |  | +            goods.f_name AS fGoodsids,
 | 
	
		
			
				|  |  | +            item.f_warehouselocid AS fWarehouselocid,
 | 
	
		
			
				|  |  | +            area.f_name AS fWarehouselocids,
 | 
	
		
			
				|  |  | +            item.f_originalbillno AS fOriginalbillno,
 | 
	
		
			
				|  |  | +            item.f_mblno AS fMblno,
 | 
	
		
			
				|  |  | +            item.f_bsdate AS fBsdate,
 | 
	
		
			
				|  |  | +            item.f_boxno AS fBoxno,
 | 
	
		
			
				|  |  | +            item.f_cntqty AS fCntqty,
 | 
	
		
			
				|  |  | +            item.f_goodsval AS fGoodsval,
 | 
	
		
			
				|  |  | +            item.f_cntrtype AS fCntrtype,
 | 
	
		
			
				|  |  | +            item.f_planqty AS fPlanqty,
 | 
	
		
			
				|  |  | +            item.f_planvolumn AS fPlanvolumn,
 | 
	
		
			
				|  |  | +            item.f_packagespecs AS fPackagespecs,
 | 
	
		
			
				|  |  | +            item.f_plangrossweight AS fPlangrossweight,
 | 
	
		
			
				|  |  | +            item.f_plannetweight AS fPlannetweight,
 | 
	
		
			
				|  |  | +            item.f_qty AS fQty,
 | 
	
		
			
				|  |  | +            item.f_volumn AS fVolumn,
 | 
	
		
			
				|  |  | +            item.f_grossweight AS fGrossweight,
 | 
	
		
			
				|  |  | +            item.f_netweight AS fNetweight,
 | 
	
		
			
				|  |  | +            item.f_cntrno AS fCntrno,
 | 
	
		
			
				|  |  | +            item.f_truckno AS fTruckno,
 | 
	
		
			
				|  |  | +            item.f_billstatus AS fBillstatus,
 | 
	
		
			
				|  |  | +            item.remark
 | 
	
		
			
				|  |  | +        from
 | 
	
		
			
				|  |  | +            t_warehousebillsitems item
 | 
	
		
			
				|  |  | +            LEFT JOIN t_goods goods ON goods.f_id = item.f_goodsid
 | 
	
		
			
				|  |  | +            LEFT JOIN t_warehouse_area area ON area.f_id = item.f_warehouselocid
 | 
	
		
			
				|  |  | +        <where>
 | 
	
		
			
				|  |  | +            <if test="fPid != null ">and item.f_pid = #{fPid}</if>
 | 
	
		
			
				|  |  | +        </where>
 | 
	
		
			
				|  |  | +    </select>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      <select id="selectTWarehousebillsitemsById" parameterType="Long" resultMap="TWarehousebillsitemsResult">
 | 
	
		
			
				|  |  |          <include refid="selectTWarehousebillsitemsVo"/>
 | 
	
		
			
				|  |  |          where f_id = #{fId}
 |