From ff97c9b2c1028b2d03e83bfc4f05629968bb22ed Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Wed, 08 Dec 2021 11:20:59 +0800
Subject: [PATCH] fix
---
gc-user/src/main/resources/mapper/user/AccountMapper.xml | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gc-user/src/main/resources/mapper/user/AccountMapper.xml b/gc-user/src/main/resources/mapper/user/AccountMapper.xml
index 4e5c053..bff7cb9 100644
--- a/gc-user/src/main/resources/mapper/user/AccountMapper.xml
+++ b/gc-user/src/main/resources/mapper/user/AccountMapper.xml
@@ -255,7 +255,7 @@
c.nick_name nickname,
c.mobile_phone phone,
(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
+ (select sum(score/ 50) 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
@@ -549,9 +549,14 @@
<select id="selectAccountInfoByIds" resultType="com.xzx.gc.entity.AccountInfo">
select * from xzx_account_info
- where id in
+ where account_id in
<foreach collection="list" index="index" item="id" separator="," open="(" close=")">
#{id}
</foreach>
</select>
+
+ <select id="selectAccountInfoByPhone" resultType="com.xzx.gc.entity.AccountInfo">
+ select a.* from xzx_account_info a, xzx_user_info b
+ where a.user_id=b.user_id and b.mobile_phone=#{phone}
+ </select>
</mapper>
--
Gitblit v1.9.1