|  | @@ -49,7 +49,7 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="QuerySO_SOMainReportBydepartment" resultType="org.jeecg.modules.report.entity.SoSoDetails">
 | 
	
		
			
				|  |  |          SELECT
 | 
	
		
			
				|  |  | -        de.cDepName,
 | 
	
		
			
				|  |  | +        cc.cCusName,
 | 
	
		
			
				|  |  |          case when max(ssd.cSCloser) is null then sum(ssd.iQuantity)
 | 
	
		
			
				|  |  |          else sum(ssd.foutquantity) end as iQuantity,
 | 
	
		
			
				|  |  |          sum(ssd.iNatMoney) as iNatMoney
 | 
	
	
		
			
				|  | @@ -70,7 +70,7 @@
 | 
	
		
			
				|  |  |          <if test="vendorType!=null and vendorType!='' and vendorType=='外部'">
 | 
	
		
			
				|  |  |              and (v.cVenAbbName  <![CDATA[ <> ]]> '宁波森语' and  v.cVenAbbName <![CDATA[ <> ]]> '马菲羊' and  v.cVenAbbName <![CDATA[ <> ]]> '森语集团')
 | 
	
		
			
				|  |  |          </if>
 | 
	
		
			
				|  |  | -        <if test="department!=null and map.department!='' ">
 | 
	
		
			
				|  |  | +        <if test="department!=null and department!='' ">
 | 
	
		
			
				|  |  |              and de.cDepName = #{department}
 | 
	
		
			
				|  |  |          </if>
 | 
	
		
			
				|  |  |          GROUP BY cc.cCusName
 | 
	
	
		
			
				|  | @@ -79,7 +79,7 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="QuerySO_SOMainReportBycustomer" resultType="org.jeecg.modules.report.entity.SoSoDetails">
 | 
	
		
			
				|  |  |          SELECT
 | 
	
		
			
				|  |  | -        cc.cCusName,
 | 
	
		
			
				|  |  | +        de.cDepName,
 | 
	
		
			
				|  |  |          case when max(ssd.cSCloser) is null then sum(ssd.iQuantity)
 | 
	
		
			
				|  |  |          else sum(ssd.foutquantity) end as iQuantity,
 | 
	
		
			
				|  |  |          sum(ssd.iNatMoney) as iNatMoney
 |