Browse Source

店铺管理

yumeng 11 months ago
parent
commit
c3a44d5dee
1 changed files with 1 additions and 7 deletions
  1. 1 7
      ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

+ 1 - 7
ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

@@ -3981,23 +3981,18 @@
         else 0 end) * 100,
         2) as 'deliveryRadio'
         from kuaishou_supply_chain t1 LEFT JOIN kuaishou_activity_open_item_list t2 on t1.item_id = t2.item_id
-        from kuaishou_supply_chain t1 LEFT JOIN  kuaishou_activity_open_item_list t2 on t1.item_id = t2.item_id
         where 1 = 1
         <if test="start != null and start != ''">
             and t1.stat_date &gt;= #{start}
-            and stat_date &gt;= #{start}
         </if>
         <if test="end != null and end != ''">
             and t1.stat_date &lt;= #{end}
-            and stat_date &lt;= #{end}
         </if>
         <if test="sellerId != null and sellerId != ''">
             and t1.seller_id = #{sellerId}
-            and seller_id = #{sellerId}
         </if>
         <if test='itemIds != null and itemIds.size() > 0'>
             and t1.item_id in
-            and item_id in
             <foreach collection="itemIds" item="item" separator=","
                      open="(" close=")">
                 #{item}
@@ -4005,14 +4000,13 @@
 
         </if>
         group by t1.seller_id
-        group by seller_id ) t1
+        ) t1
         left join(select shop_id as 'shopId', shop_title as 'shopTitle' from kuaishou_activity_open_item_list GROUP BY
         shop_id)t2
         on t1.sellerId = t2.shopId
         order by ${fieId} ${sort}
 
 
-
     </select>
     <select id="shopDetail" resultType="com.alibaba.fastjson.JSONObject">
         SELECT t1.*,