瀏覽代碼

销售订单报表统计图

liuchaohui 2 年之前
父節點
當前提交
077a02c6d5

+ 3 - 3
jeecg-boot-module-system/src/main/java/org/jeecg/modules/report/mapper/xml/SoSoDetailsMapper.xml

@@ -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