This commit is contained in:
张良(004796)
2024-03-26 11:23:22 +08:00
parent 7d6bf7e2e2
commit 7c476f0e73
23 changed files with 221 additions and 35 deletions

View File

@@ -21,6 +21,38 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
</where>
</select>
<select id="pageAdmin" resultType="com.ruoyi.xq.dto.admin.account.WxTransDataAdminVo">
select t1.*,
t2.nickname as sponsor_nickname,t2.mobile as sponsor_mobile,t2.avatar as sponsor_avatar,
t3.nickname as receive_nickname,t3.mobile as receive_mobile,t3.avatar as receive_avatar
from xq_wx_trans_data t1
left join xq_user t2 on t1.sponsor_user_id = t2.id
left join xq_user t3 on t1.receive_user_id = t3.id
<where>
<if test="bo.sponsorUsercode != null and bo.sponsorUsercode != ''">
and t1.sponsor_usercode = #{bo.sponsorUsercode}
</if>
<if test="bo.sponsorNickname != null and bo.sponsorNickname != ''">
and t2.nickname like concat('%',#{bo.sponsorNickname},'%')
</if>
<if test="bo.sponsorMobile != null and bo.sponsorMobile != ''">
and t2.mobile = #{bo.sponsorMobile}
</if>
<if test="bo.receiveUsercode != null and bo.receiveUsercode != ''">
and t1.receive_usercode = #{bo.receiveUsercode}
</if>
<if test="bo.receiveNickname != null and bo.receiveNickname != ''">
and t3.nickname like concat('%',#{bo.receiveNickname},'%')
</if>
<if test="bo.receiveMobile != null and bo.receiveMobile != ''">
and t3.mobile = #{bo.receiveMobile}
</if>
<if test="bo.status != null ">
and t1.status = #{bo.status}
</if>
</where>
order by t1.create_time desc
</select>
</mapper>

View File

@@ -4,16 +4,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.xq.mapper.WxTransLogMapper">
<resultMap type="com.ruoyi.xq.domain.WxTransLog" id="WxTransLogResult">
<result property="id" column="id"/>
<result property="userId" column="user_id"/>
<result property="userCode" column="user_code"/>
<result property="wxTransDataId" column="wx_trans_data_id"/>
<result property="cateId" column="cate_id"/>
<result property="changeValue" column="change_value"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<select id="pageAdmin" resultType="com.ruoyi.xq.dto.admin.account.WxTransLogAdminVo">
select t1.*, t2.nickname,t2.mobile,t2.avatar
from xq_wx_trans_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 t1.create_time desc
</select>
</mapper>

View File

@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.xq.mapper.WxTransOrderMapper">
<select id="pageAdmin" resultType="com.ruoyi.xq.dto.admin.wxtrans.WxTransOrderAdminVo">
<select id="pageAdmin" resultType="com.ruoyi.xq.dto.admin.account.WxTransOrderAdminVo">
select t1.*, t2.nickname,t2.mobile,t2.avatar
from xq_wx_trans_order t1
left join xq_user t2 on t1.user_id = t2.id