init
This commit is contained in:
@@ -4,21 +4,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.xq.mapper.AccountChangeLogMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.xq.domain.AccountChangeLog" id="AccountChangeLogResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="usercode" column="usercode"/>
|
||||
<result property="accountType" column="account_type"/>
|
||||
<result property="tarUserId" column="tar_user_id"/>
|
||||
<result property="tarJson" column="tar_json"/>
|
||||
<result property="cateId" column="cate_id"/>
|
||||
<result property="changeType" column="change_type"/>
|
||||
<result property="changeValue" column="change_value"/>
|
||||
<result property="traceId" column="trace_id"/>
|
||||
<result property="isAdmin" column="is_admin"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
<select id="pageAdmin" resultType="com.ruoyi.xq.dto.admin.log.AccountChangeLogAdminVo">
|
||||
select t1.*, t2.nickname, t2.mobile,t2.avatar
|
||||
from xq_account_change_log t1
|
||||
left join xq_user t2 on t1.user_id = t2.id
|
||||
<where>
|
||||
<if test="bo.usercode != null and bo.usercode != ''">
|
||||
and t1.usercode = #{bo.usercode}
|
||||
</if>
|
||||
<if test="bo.nickname != null and bo.nickname != ''">
|
||||
and t2.nickname like concat('%',#{bo.nickname},'%')
|
||||
</if>
|
||||
<if test="bo.mobile != null and bo.mobile != ''">
|
||||
and t2.mobile = #{bo.mobile}
|
||||
</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -24,6 +24,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
set wx_trans_num = wx_trans_num + #{wxTransNum}
|
||||
where user_id = #{userId}
|
||||
</update>
|
||||
<update id="incsConsumeTotal">
|
||||
update xq_user_extend
|
||||
set consume_total = consume_total + #{consumeMonty}
|
||||
where user_id = #{userId}
|
||||
</update>
|
||||
<select id="pageAdmin" resultType="com.ruoyi.xq.dto.admin.user.UserExtendAdminVo">
|
||||
select t1.*, t2.nickname,t2.mobile,t2.avatar
|
||||
from xq_user_extend t1
|
||||
|
||||
Reference in New Issue
Block a user