From a8560eb20f89c32e9c2cdb3e137ece2fa3c10ec4 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 14 Jul 2021 16:32:15 +0800 Subject: [PATCH] fix --- gc-user/src/main/resources/mapper/user/AccountMapper.xml | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/gc-user/src/main/resources/mapper/user/AccountMapper.xml b/gc-user/src/main/resources/mapper/user/AccountMapper.xml index ccf2bed..14f9d3d 100644 --- a/gc-user/src/main/resources/mapper/user/AccountMapper.xml +++ b/gc-user/src/main/resources/mapper/user/AccountMapper.xml @@ -133,4 +133,38 @@ </select> + + <insert id="insertScoreDetailsRet"> + insert into xzx_score_details (CREATED_TIME, user_id, type, original_score, change_score, current_score) + values ( + #{createdTime}, #{userId}, #{type}, #{originalScore}, #{changeScore}, #{currentScore} + ) + </insert> + + + + <select id="selectOneByUserId" resultType="com.xzx.gc.entity.AccountInfo"> + select * from xzx_account_info where user_id = #{userId} + </select> + + <select id="selectDsitribListByQueryCol" resultType="com.xzx.gc.user.vo.DistribListVo"> + SELECT + a.account_id id, + a.is_head isHead, + b.nick_name nickname, + b.regist_time registTime, + b.mobile_phone phone + FROM + xzx_account_info a + LEFT JOIN xzx_user_info b on a.user_id = b.user_id + <where> + 1=1 + <if test="record.queryCol != null and record.queryCol != ''"> + and (b.nick_name like concat('%',#{record.name},'%') + or mobile_phone like concat('%',#{record.phone},'%') ) + </if> + </where> + order by id desc + </select> + </mapper> -- Gitblit v1.9.1