Commit 8f829cc1 authored by zhaobiyan's avatar zhaobiyan

会员信息新增字段持有积分

parent 827dcc50
...@@ -236,4 +236,5 @@ public class MemberUserDO extends TenantBaseDO { ...@@ -236,4 +236,5 @@ public class MemberUserDO extends TenantBaseDO {
private String code; private String code;
private Integer holdScore;
} }
...@@ -161,10 +161,12 @@ public interface MemberUserMapper extends BaseMapperX<MemberUserDO> { ...@@ -161,10 +161,12 @@ public interface MemberUserMapper extends BaseMapperX<MemberUserDO> {
" uea.`create_time` as enterprise_audit_create_time,", " uea.`create_time` as enterprise_audit_create_time,",
" uea.`audit_time` as enterprise_audit_time," , " uea.`audit_time` as enterprise_audit_time," ,
" uea.`audit_remark` as enterprise_audit_remark", " uea.`audit_remark` as enterprise_audit_remark",
" ifnull(mus.`hold_score`, 0) as hold_score",
"from member_user u ", "from member_user u ",
"left join member_user_enterprise e on e.user_id = u.id and e.deleted = 0 ", "left join member_user_enterprise e on e.user_id = u.id and e.deleted = 0 ",
"left join member_user_card_auth uca on u.id = uca.user_id and uca.deleted = 0 " , "left join member_user_card_auth uca on u.id = uca.user_id and uca.deleted = 0 " ,
"left join member_user_enterprise_auth uea on u.id = uea.user_id and uea.deleted = 0 ", "left join member_user_enterprise_auth uea on u.id = uea.user_id and uea.deleted = 0 ",
"left join member_user_score mus on u.id = mus.member_id and mus.deleted = 0 ",
"where ", "where ",
"u.deleted = 0 ", "u.deleted = 0 ",
"AND u.id = #{id} ", "AND u.id = #{id} ",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment