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.

32 lines
1.2 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.example.gb.dao.GoldbeanConsumeMapper">
  4. <select id="getLiveConsumeList" resultType="com.example.gb.bean.vo.LiveOrderVO">
  5. select
  6. lgg.id as id,
  7. fx.true_name as userRealName,
  8. fx.jwcode as jwcode,
  9. fx.ip_address as ipAddress,
  10. lg.name as type,
  11. lgg.gold_beans as goldBeans,
  12. lgg.gold_free as goldFree,
  13. lgg.gold_buy as goldBuy,
  14. lp.title as channelName,
  15. lp.pd_id as channelId,
  16. l.name as liveName,
  17. l.id as liveId,
  18. lgg.time as time
  19. from live_give_gifts as lgg
  20. left join live as l on lgg.live_id = l.id
  21. left join fx_member as fx on lgg.jwcode = fx.jwcode
  22. left join live_pindao as lp on lp.pd_id = l.channel_id
  23. left join live_gifts as lg on lgg.g_id = lg.id
  24. <where>
  25. <if test="jwcode != null">
  26. and lgg.jwcode = #{jwcode}
  27. </if>
  28. <if test="liveId != null">
  29. and lgg.live_id = #{liveId}
  30. </if>
  31. </where>
  32. </select>
  33. </mapper>