From f69fd42a3ae2d11713dcd284ae3db57e449ae6dd Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Thu, 15 Jul 2021 18:00:45 +0800 Subject: [PATCH] fix --- gc-user/src/main/resources/mapper/user/AccountMapper.xml | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gc-user/src/main/resources/mapper/user/AccountMapper.xml b/gc-user/src/main/resources/mapper/user/AccountMapper.xml index 41fcbc0..03dadbb 100644 --- a/gc-user/src/main/resources/mapper/user/AccountMapper.xml +++ b/gc-user/src/main/resources/mapper/user/AccountMapper.xml @@ -191,7 +191,7 @@ <if test="record.phone != null and record.phone != ''"> and b.mobile_phone like concat('%',#{record.phone},'%') </if> - <if test="record.phone != null and record.phone != ''"> + <if test="record.isProhibit != null and record.isProhibit != ''"> and a.is_prohibit = #{record.isProhibit} </if> <if test="record.reserveTimeStart != null"> @@ -240,13 +240,13 @@ a.order_no orderNo, a.score scoreReward, a.amount amountReward, - sum(c.score) score, - sum(c.score/40) amount + (select sum(score) from xzx_jhy_order_items where b.id = order_id) score, + (select sum(score/ 40) from xzx_jhy_order_items where b.id = order_id) amount FROM xzx_user_head_details a - LEFT JOIN xzx_jhy_order b on a.order_no = b.order_no - LEFT JOIN xzx_jhy_order_items c on b.id=c.order_id - where a.head_user_id = #{userId} + LEFT JOIN xzx_jhy_order b ON a.order_no = b.order_no + WHERE + a.head_user_id = #{userId} </select> -- Gitblit v1.9.1