Ver código fonte

修复直播相关的问题

yh 1 semana atrás
pai
commit
7ed2a4277e

+ 1 - 1
fs-service/src/main/java/com/fs/live/mapper/LiveLotteryConfMapper.java

@@ -105,7 +105,7 @@ public interface LiveLotteryConfMapper {
     @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_scrm fsp on lg.product_id = fsp.product_id\n" +
+            "        left join fs_store_product_scrm fsp on lulr.product_id = fsp.product_id\n" +
             "        where lulr.user_id = #{userId}")
     List<LiveUserLotteryRecordVo> selectLiveUserLotteryRecordByUserId(long userId);
 }

+ 1 - 0
fs-service/src/main/java/com/fs/live/service/impl/LiveOrderServiceImpl.java

@@ -3638,6 +3638,7 @@ public class LiveOrderServiceImpl implements ILiveOrderService {
         if (attrValue != null) {
             payPrice = attrValue.getPrice().multiply(new BigDecimal(liveOrder.getTotalNum()));
         }
+        fsStoreProduct.setPrice(payPrice);
         // 直播不需要服务费 0915 1735 左
 //        String config=configService.selectConfigByKey("store.config");
 //        StoreConfig storeConfig= JSONUtil.toBean(config,StoreConfig.class);