From 2a891d0391bc9f2dfaaaee8f63fcb20ff0932202 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期三, 24 七月 2024 15:11:40 +0800
Subject: [PATCH] 修改订单报表
---
north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml b/north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml
index a947688..fe1c71e 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/CustomerMapper.xml
@@ -54,7 +54,7 @@
od.width,
od.height,
o.batch,
- o.money,
+ sum(od.gross_amount) as money,
o.order_type,
o.salesman,
o.create_time
@@ -198,6 +198,9 @@
<if test="customer.customerName != null and customer.customerName != ''">
and c.customer_name regexp #{customer.customerName}
</if>
+ <if test="customer.customerAbbreviation != null and customer.customerAbbreviation != ''">
+ and c.customer_abbreviation regexp #{customer.customerAbbreviation}
+ </if>
<if test="customer.grade != null and customer.grade != ''">
and c.grade regexp #{customer.grade}
</if>
@@ -252,15 +255,15 @@
</select>
<insert id="insertCustomer" useGeneratedKeys="true" >
- insert into sd.customer(customer_name,grade,money_limit,address,contact,phone)
+ insert into sd.customer(customer_name,customer_abbreviation,grade,money_limit,address,contact,phone)
values (
- #{customer.customerName},#{customer.grade},#{customer.moneyLimit},
+ #{customer.customerName},#{customer.customerAbbreviation},#{customer.grade},#{customer.moneyLimit},
#{customer.address},#{customer.contact},#{customer.phone}
)
</insert>
<update id="updateCustomer" useGeneratedKeys="true" >
- update sd.customer set customer_name=#{customer.customerName},grade=#{customer.grade},
+ update sd.customer set customer_name=#{customer.customerName},customer_abbreviation=#{customer.customerAbbreviation},grade=#{customer.grade},
money_limit=#{customer.moneyLimit},address= #{customer.address},
contact=#{customer.contact},phone=#{customer.phone} where id=#{customer.id}
</update>
--
Gitblit v1.8.0