会员余额明细获取

This commit is contained in:
张松
2025-03-25 00:18:15 +08:00
parent 1cac2de9ac
commit 6c7b92845f
6 changed files with 52 additions and 9 deletions

View File

@@ -4,4 +4,17 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.czg.service.account.mapper.ShopUserFlowMapper">
<select id="pageInfo" resultType="com.czg.account.vo.ShopUserFlowVO">
select a.*, c.shop_name as shopName, b.phone, b.nick_name as nickName from tb_shop_user_flow as a
join tb_shop_user as b on a.user_id=b.user_id and a.shop_id=b.shop_id
join tb_shop_info as c on c.id=a.shop_id
where a.shop_id=#{shopId}
<if test="bizCode != null and bizCode != ''">
and a.biz_code=#{bizCode}
</if>
<if test="userId != null">
and a.user_id=#{userId}
</if>
order by a.create_time desc
</select>
</mapper>