web socket

支付
会员
This commit is contained in:
2024-05-30 09:21:35 +08:00
parent a59377e20d
commit fc962e62b7
15 changed files with 308 additions and 207 deletions

View File

@@ -122,6 +122,10 @@
FROM
tb_shop_user_flow f
LEFT JOIN tb_shop_user u ON f.shop_user_id = u.id
where 1=1
<if test="memberId != null and memberId!=''">
and u.id = #{memberId}
</if>
order by f.id desc
</select>
</mapper>

View File

@@ -44,6 +44,13 @@
from tb_shop_user
where id = #{id,jdbcType=VARCHAR}
</select>
<select id="selectByPhone" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tb_shop_user
where telephone = #{phone,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from tb_shop_user
where id = #{id,jdbcType=VARCHAR}
@@ -386,11 +393,13 @@
<select id="selectByUserId" resultType="java.util.Map">
SELECT
u.id as memberId,
i.id as shopId,
i.shop_name as shopName,
i.chain_name as chainName,
i.logo,
i.detail,
u.level_consume as levelConsume,
u.amount,
u.`code`,
u.is_vip