Browse Source

销售订单统计报表 客户简称

liuchaohui 3 years ago
parent
commit
964a0cf05c

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

@@ -40,7 +40,7 @@
             and de.cDepName = #{map.department}
             and de.cDepName = #{map.department}
         </if>
         </if>
         <if test="map.customer!=null and map.customer!='' ">
         <if test="map.customer!=null and map.customer!='' ">
-            and cc.cCusName = #{map.customer}
+            and cc.cCusAbbName = #{map.customer}
         </if>
         </if>
         GROUP BY de.cDepName,ss.cCusCode,v.cVenAbbName,convert(char(7),ss.dPreDateBT,120),ssd.iNatUnitPrice,v.cVCName
         GROUP BY de.cDepName,ss.cCusCode,v.cVenAbbName,convert(char(7),ss.dPreDateBT,120),ssd.iNatUnitPrice,v.cVCName
         --ORDER BY
         --ORDER BY
@@ -49,7 +49,7 @@
 
 
     <select id="QuerySO_SOMainReportBydepartment" resultType="org.jeecg.modules.report.entity.SoSoDetails">
     <select id="QuerySO_SOMainReportBydepartment" resultType="org.jeecg.modules.report.entity.SoSoDetails">
         SELECT
         SELECT
-        cc.cCusName,
+        cc.cCusAbbName  as cCusName,
         case when max(ssd.cSCloser) is null then sum(ssd.iQuantity)
         case when max(ssd.cSCloser) is null then sum(ssd.iQuantity)
         else sum(ssd.foutquantity) end as iQuantity,
         else sum(ssd.foutquantity) end as iQuantity,
         sum(ssd.iNatMoney) as iNatMoney
         sum(ssd.iNatMoney) as iNatMoney
@@ -101,7 +101,7 @@
             and (v.cVenAbbName  <![CDATA[ <> ]]> '宁波森语' and  v.cVenAbbName <![CDATA[ <> ]]> '马菲羊' and  v.cVenAbbName <![CDATA[ <> ]]> '森语集团')
             and (v.cVenAbbName  <![CDATA[ <> ]]> '宁波森语' and  v.cVenAbbName <![CDATA[ <> ]]> '马菲羊' and  v.cVenAbbName <![CDATA[ <> ]]> '森语集团')
         </if>
         </if>
         <if test="customer!=null and customer!='' ">
         <if test="customer!=null and customer!='' ">
-            and cc.cCusName = #{customer}
+            and cc.cCusAbbName = #{customer}
         </if>
         </if>
         GROUP BY de.cDepName
         GROUP BY de.cDepName
     </select>
     </select>