Browse Source

最终客户查询

liuchaohui 2 years ago
parent
commit
ebe1fbfc5d

+ 3 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/documents/orderData/mapper/xml/SyOrderDataMapper.xml

@@ -27,10 +27,12 @@
             price_remarks,
             customer_order_number,
             sum(b.total_price_and_tax) as whole_order_total,
+            if(left(b.inventory_ccode,2)='19',
             case customer_abbreviation
             when '森宇集团' then end_customer
             when '宁波森宇' then end_customer
-            else customer_abbreviation end as end_customer,
+            else customer_abbreviation end ,
+            end_customer) as end_customer,
             term_of_payment,
             order_change_description,
             a.memo,