From f14c50cb0036d3ddd655ce4e34732ba396a836c4 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 30 五月 2023 12:42:03 +0800
Subject: [PATCH] optimize 统计
---
java110-db/src/main/resources/mapper/store/ReserveGoodsOrderTimeV1ServiceDaoImplMapper.xml | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/store/ReserveGoodsOrderTimeV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ReserveGoodsOrderTimeV1ServiceDaoImplMapper.xml
index aaf5537..80f53ed 100644
--- a/java110-db/src/main/resources/mapper/store/ReserveGoodsOrderTimeV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/ReserveGoodsOrderTimeV1ServiceDaoImplMapper.xml
@@ -19,15 +19,18 @@
<select id="getReserveGoodsOrderTimeInfo" parameterType="Map" resultType="Map">
select t.hours,t.quantity,t.time_id,t.time_id timeId,t.order_id,t.order_id orderId,t.goods_id,t.goods_id
goodsId,t.status_cd,t.status_cd statusCd,t.state,t.community_id,t.community_id communityId,rgo.person_name personName,
- rgo.person_tel personTel,rgo.appointment_time appointmentTime,rg.goods_name goodName,rgo.received_amount receivedAmount,rgo.state,
+ rgo.person_tel personTel,rgo.appointment_time appointmentTime,rg.goods_name goodsName,rgo.received_amount receivedAmount,rgo.state,
td.`name` stateName
from reserve_goods_order_time t
left join reserve_goods_order rgo on t.order_id = rgo.order_id and rgo.status_cd='0'
left join reserve_goods rg on t.goods_id = rg.goods_id and rg.status_cd = '0'
- left join t_dict td on td.table_name = 'reserve_goods_order' and td.table_columns = 'state' and rgo.state = td.status_cd
+ left join t_dict td on td.table_name = 'reserve_goods_order_time' and td.table_columns = 'state' and t.state = td.status_cd
where 1 =1
<if test="appointmentTime !=null and appointmentTime != ''">
and rgo.appointment_time = #{appointmentTime}
+ </if>
+ <if test="personTel !=null and personTel != ''">
+ and rgo.person_tel = #{personTel}
</if>
<if test="hours !=null and hours != ''">
and t.hours= #{hours}
@@ -107,6 +110,9 @@
<if test="appointmentTime !=null and appointmentTime != ''">
and rgo.appointment_time = #{appointmentTime}
</if>
+ <if test="personTel !=null and personTel != ''">
+ and rgo.person_tel = #{personTel}
+ </if>
<if test="hours !=null and hours != ''">
and t.hours= #{hours}
</if>
--
Gitblit v1.8.0