Browse Source

最终客户查询

liuchaohui 2 years ago
parent
commit
e7631e6583

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

@@ -12,9 +12,7 @@
             sales_type_value,
             sales_type_text,
             customer_abbreviation,
-            case customer_name when '森宇集团' then end_customer
-                                when '宁波森宇' then end_customer
-                                else customer_name end as customer_name,
+            customer_name,
             exchange_rate,
             sales_department,
             salesman,
@@ -29,7 +27,10 @@
             price_remarks,
             customer_order_number,
             sum(b.total_price_and_tax) as whole_order_total,
-            end_customer,
+            case customer_abbreviation
+            when '森宇集团' then end_customer
+            when '宁波森宇' then end_customer
+            else customer_abbreviation end as end_customer,
             term_of_payment,
             order_change_description,
             a.memo,