|
|
@ -357,7 +357,7 @@ |
|
|
|
|
|
|
|
<select id="getUser" parameterType="java.lang.Object" resultType="com.shop.cereshop.app.page.buyer.MyUser"> |
|
|
|
SELECT a.buyer_user_id, `name`, `sex`, birthday, real_name,id_card,phone,a.create_time, head_image, member_level_id, growth, |
|
|
|
a.credit, sum(b.credit) as totalCredit FROM cere_buyer_user a |
|
|
|
a.credit, sum(b.credit) as totalCredit, a.project FROM cere_buyer_user a |
|
|
|
left join cere_credit_record b on b.buyer_user_id = a.buyer_user_id and b.record_type = 1 |
|
|
|
where a.buyer_user_id = #{buyerUserId} |
|
|
|
</select> |
|
|
|