You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.2 KiB
33 lines
1.2 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.example.gb.dao.GoldbeanConsumeMapper">
|
|
<select id="getLiveConsumeList" resultType="com.example.gb.bean.vo.LiveOrderVO">
|
|
select
|
|
lgg.id as id,
|
|
fx.true_name as userRealName,
|
|
fx.jwcode as jwcode,
|
|
fx.ip_address as ipAddress,
|
|
lg.name as type,
|
|
lgg.gold_beans as goldBeans,
|
|
lgg.gold_free as goldFree,
|
|
lgg.gold_buy as goldBuy,
|
|
lp.title as channelName,
|
|
lp.pd_id as channelId,
|
|
l.name as liveName,
|
|
l.id as liveId,
|
|
lgg.time as time
|
|
from live_give_gifts as lgg
|
|
left join live as l on lgg.live_id = l.id
|
|
left join fx_member as fx on lgg.jwcode = fx.jwcode
|
|
left join live_pindao as lp on lp.pd_id = l.channel_id
|
|
left join live_gifts as lg on lgg.g_id = lg.id
|
|
<where>
|
|
<if test="jwcode != null">
|
|
and lgg.jwcode = #{jwcode}
|
|
</if>
|
|
<if test="liveId != null">
|
|
and lgg.live_id = #{liveId}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
</mapper>
|