Pārlūkot izejas kodu

个人中奖记录

yuhongqi 1 mēnesi atpakaļ
vecāks
revīzija
265ccee630

+ 2 - 2
fs-service-system/src/main/java/com/fs/live/mapper/LiveUserLotteryRecordMapper.java

@@ -69,8 +69,8 @@ public interface LiveUserLotteryRecordMapper {
 
     @Select("select lulr.*,fu.nickname as user_name,fsp.product_name as product_name\n" +
             "        from live_user_lottery_record lulr left join fs_user fu on lulr.user_id = fu.user_id\n" +
-            "        left join live_goods lg on lulr.product_id = lg.goods_id\n" +
-            "        left join fs_store_product fsp on lg.product_id = fsp.product_id\n" +
+            "        " +
+            "        left join fs_store_product fsp on lulr.product_id = fsp.product_id\n" +
             "        where lulr.user_id = #{userId} order by lulr.created_time desc")
     List<LiveUserLotteryRecordVo> selectLiveUserLotteryRecordByUserId(@Param("userId") long userId);
 }

+ 1 - 2
fs-service-system/src/main/resources/mapper/live/LiveUserLotteryRecordMapper.xml

@@ -37,8 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <select id="selectRecordByLiveIdAndLotteryId"  resultType="com.fs.live.vo.LiveUserLotteryRecordVo">
         select lulr.*,fu.nickname as user_name,fsp.product_name as product_name
         from live_user_lottery_record lulr left join fs_user fu on lulr.user_id = fu.user_id
-        left join live_goods lg on lulr.product_id = lg.goods_id
-        left join fs_store_product fsp on lg.product_id = fsp.product_id
+        left join fs_store_product fsp on lulr.product_id = fsp.product_id
         where lulr.lottery_id = #{lotteryId} and lulr.live_id = #{liveId}
     </select>