|  | @@ -561,6 +561,17 @@
 | 
	
		
			
				|  |  |              t.f_originalbilldate
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    <select id="getCorpsByfMblno" parameterType="string" resultType="Map">
 | 
	
		
			
				|  |  | +        select
 | 
	
		
			
				|  |  | +            tc.f_id as fId,
 | 
	
		
			
				|  |  | +            tc.f_name as fName
 | 
	
		
			
				|  |  | +        from t_whgenleg tw left join t_corps tc on tw.f_corpid = tc.f_id
 | 
	
		
			
				|  |  | +        <where>
 | 
	
		
			
				|  |  | +            <if test="fId != null and fId != ''">and tw.f_mblno = #{fMblno}</if>
 | 
	
		
			
				|  |  | +        </where>
 | 
	
		
			
				|  |  | +        group by tc.f_id, tc.f_name
 | 
	
		
			
				|  |  | +    </select>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      <select id="selectStorageFeeItemList" parameterType="com.ruoyi.warehouseBusiness.domain.TWarehouseBills" resultType="Map">
 | 
	
		
			
				|  |  |          SELECT
 | 
	
		
			
				|  |  |              wh.f_id AS fId,
 | 
	
	
		
			
				|  | @@ -1219,7 +1230,7 @@
 | 
	
		
			
				|  |  |      <select id="biCustomerInfo" resultType="map">
 | 
	
		
			
				|  |  |          select
 | 
	
		
			
				|  |  |              tc.f_cname as customerName,
 | 
	
		
			
				|  |  | -            round(sum(tw.f_grossweightblc) / 1000, 2) as quantity
 | 
	
		
			
				|  |  | +            round(ifnull(sum(tw.f_grossweightblc), 0) / 1000, 2) as quantity
 | 
	
		
			
				|  |  |          from t_whgenleg tw left join t_corps tc on tw.f_corpid = tc.f_id
 | 
	
		
			
				|  |  |          where
 | 
	
		
			
				|  |  |              tw.f_qtyD != 0
 | 
	
	
		
			
				|  | @@ -1232,7 +1243,7 @@
 | 
	
		
			
				|  |  |      <select id="biGoodsInfo" parameterType="long" resultType="map">
 | 
	
		
			
				|  |  |          select
 | 
	
		
			
				|  |  |              tg.f_name as goodsName,
 | 
	
		
			
				|  |  | -            round(sum(tw.f_grossweightblc) / 1000, 2) as quantity
 | 
	
		
			
				|  |  | +            round(ifnull(sum(tw.f_grossweightblc), 0) / 1000, 2) as quantity
 | 
	
		
			
				|  |  |          from t_whgenleg tw left join t_goods tg on tw.f_goodsid = tg.f_id
 | 
	
		
			
				|  |  |          where
 | 
	
		
			
				|  |  |              tw.f_qtyD != 0
 | 
	
	
		
			
				|  | @@ -1244,8 +1255,8 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="biWeightInfo" resultType="map">
 | 
	
		
			
				|  |  |          select
 | 
	
		
			
				|  |  | -            round(sum(f_grossweightD) / 1000, 2) as quantityIn,
 | 
	
		
			
				|  |  | -            round(sum(f_grossweightblc) / 1000, 2) as quantity
 | 
	
		
			
				|  |  | +            round(ifnull(sum(f_grossweightD), 0) / 1000, 2) as quantityIn,
 | 
	
		
			
				|  |  | +            round(ifnull(sum(f_grossweightblc), 0) / 1000, 2) as quantity
 | 
	
		
			
				|  |  |          from t_whgenleg
 | 
	
		
			
				|  |  |          where
 | 
	
		
			
				|  |  |              f_qtyD != 0
 |