From 6f0cee21409ccd21a762fb3a3a46cec06f65b503 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期三, 25 十二月 2024 14:31:17 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master-v4' into master-v4 --- src/main/resources/mapper/report/OrderReportMapper.xml | 16 ++++------------ 1 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/main/resources/mapper/report/OrderReportMapper.xml b/src/main/resources/mapper/report/OrderReportMapper.xml index affc3b6..f88e5bb 100644 --- a/src/main/resources/mapper/report/OrderReportMapper.xml +++ b/src/main/resources/mapper/report/OrderReportMapper.xml @@ -47,9 +47,7 @@ and o.payment_time < #{dto.endDate} </if> <if test="dto.partnerId != null"> - and o.create_by in ( - select user_id from t_customer_info where partner_id=#{dto.partnerId} - ) + and o.partner_id=#{dto.partnerId} </if> ) t @@ -96,9 +94,7 @@ and o.payment_time < #{dto.endDate} </if> <if test="dto.partnerId != null"> - and o.create_by in ( - select user_id from t_customer_info where partner_id=#{dto.partnerId} - ) + and o.partner_id=#{dto.partnerId} </if> ) t @@ -130,9 +126,7 @@ and o.payment_time < #{dto.endDate} </if> <if test="dto.partnerId != null"> - and o.create_by in ( - select user_id from t_customer_info where partner_id=#{dto.partnerId} - ) + and o.partner_id=#{dto.partnerId} </if> </select> @@ -159,9 +153,7 @@ and o.payment_time < #{dto.endDate} </if> <if test="dto.partnerId != null"> - and o.create_by in ( - select user_id from t_customer_info where partner_id=#{dto.partnerId} - ) + and o.partner_id=#{dto.partnerId} </if> </select> -- Gitblit v1.9.3