|  | @@ -797,22 +797,22 @@
 | 
	
		
			
				|  |  |              leg.f_trademodeid AS fTrademodeids,
 | 
	
		
			
				|  |  |              goods.f_packagespecs AS fPackagespecs,
 | 
	
		
			
				|  |  |              leg.f_goodsid AS fGoodsid,
 | 
	
		
			
				|  |  | -            IFNULL(SUM(leg.f_volumnD),0) AS fVolumnD,
 | 
	
		
			
				|  |  | -            IFNULL(SUM(leg.f_qtyD),0) AS fQtyD,
 | 
	
		
			
				|  |  | +            leg.f_volumnD AS fVolumnD,
 | 
	
		
			
				|  |  | +            leg.f_qtyD AS fQtyD,
 | 
	
		
			
				|  |  |              leg.f_mblno AS fMblno,
 | 
	
		
			
				|  |  | -            IFNULL(SUM(leg.f_grossweightD),0) AS fGrossweightD,
 | 
	
		
			
				|  |  | -            IFNULL(SUM(leg.f_netweightD),0) AS fNetweightD,
 | 
	
		
			
				|  |  | -            IFNULL(SUM(leg.f_volumnC),0) AS fVolumnC,
 | 
	
		
			
				|  |  | -            IFNULL(SUM(leg.f_volumnblc),0) AS fVolumnblc,
 | 
	
		
			
				|  |  | -            SUM(leg.f_qtyC) AS fQtyC,
 | 
	
		
			
				|  |  | +            leg.f_grossweightD AS fGrossweightD,
 | 
	
		
			
				|  |  | +            leg.f_netweightD AS fNetweightD,
 | 
	
		
			
				|  |  | +            leg.f_volumnC AS fVolumnC,
 | 
	
		
			
				|  |  | +            leg.f_volumnblc AS fVolumnblc,
 | 
	
		
			
				|  |  | +            leg.f_qtyC AS fQtyC,
 | 
	
		
			
				|  |  |              leg.f_business_type AS fBusinessType,
 | 
	
		
			
				|  |  | -            IFNULL(SUM(leg.f_grossweightC),0) AS fGrossweightC,
 | 
	
		
			
				|  |  | -            IFNULL(SUM(leg.f_netweightC),0) AS fNetweightC,
 | 
	
		
			
				|  |  | -            IFNULL(SUM(leg.f_qtyblc),0) AS fQtyblc,
 | 
	
		
			
				|  |  | +            leg.f_grossweightC AS fGrossweightC,
 | 
	
		
			
				|  |  | +            leg.f_netweightC AS fNetweightC,
 | 
	
		
			
				|  |  | +            leg.f_qtyblc AS fQtyblc,
 | 
	
		
			
				|  |  |              leg.f_billingway AS fBillingway,
 | 
	
		
			
				|  |  |              leg.f_chargedate AS fChargedate,
 | 
	
		
			
				|  |  | -            IFNULL(SUM(leg.f_grossweightblc),0) AS fGrossweightblc,
 | 
	
		
			
				|  |  | -            IFNULL(SUM(leg.f_netweightblc),0) AS fNetweightblc,
 | 
	
		
			
				|  |  | +            leg.f_grossweightblc AS fGrossweightblc,
 | 
	
		
			
				|  |  | +            leg.f_netweightblc AS fNetweightblc,
 | 
	
		
			
				|  |  |              dict.dict_label AS fBusinessTypes,
 | 
	
		
			
				|  |  |              leg.f_marks AS fMarks,
 | 
	
		
			
				|  |  |              DATE_FORMAT( leg.create_time, '%Y-%m-%d' ) AS createTime,
 | 
	
	
		
			
				|  | @@ -875,12 +875,12 @@
 | 
	
		
			
				|  |  |              <if test="fLocalcntrno != null  and fLocalcntrno != ''">and leg.f_localcntrno  LIKE  concat('%', #{fLocalcntrno}, '%')</if>
 | 
	
		
			
				|  |  |              <if test="fLocation != null  and fLocation ==0 ">and ware.ancestors  LIKE  concat('%', #{fWarehouseLocationid}, '%')</if>
 | 
	
		
			
				|  |  |              <if test="isCntrno == null">
 | 
	
		
			
				|  |  | -                GROUP BY leg.f_corpid, leg.f_originalbillno, leg.f_originalbilldate, leg.f_warehouse_locationid, leg.f_goodsid, leg.f_trademodeid
 | 
	
		
			
				|  |  | +                GROUP BY leg.f_corpid, leg.f_originalbillno, leg.f_originalbilldate, leg.f_warehouse_locationid, leg.f_goodsid, leg.f_trademodeid,leg.f_marks
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  |              <if test="isCntrno == 1 ">
 | 
	
		
			
				|  |  | -                GROUP BY leg.f_corpid, leg.f_originalbillno, leg.f_originalbilldate, leg.f_warehouse_locationid, leg.f_goodsid, leg.f_trademodeid,leg.f_cntrno
 | 
	
		
			
				|  |  | +                GROUP BY leg.f_corpid, leg.f_originalbillno, leg.f_originalbilldate, leg.f_warehouse_locationid, leg.f_goodsid, leg.f_trademodeid,leg.f_cntrno,leg.f_marks
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  | -            <if test="isCntrno == 2 ">GROUP BY leg.f_corpid, leg.f_mblno, leg.f_goodsid, leg.f_warehouseid</if>
 | 
	
		
			
				|  |  | +            <if test="isCntrno == 2 ">GROUP BY leg.f_corpid, leg.f_mblno, leg.f_goodsid, leg.f_warehouseid,leg.f_marks</if>
 | 
	
		
			
				|  |  |          </where>
 | 
	
		
			
				|  |  |          ${params.dataScope}
 | 
	
		
			
				|  |  |          order by leg.f_bsdate desc
 |