Bläddra i källkod

供应链v2调整

yumeng 2 år sedan
förälder
incheckning
85a6be4bc4
1 ändrade filer med 6 tillägg och 2 borttagningar
  1. 6 2
      ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

+ 6 - 2
ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

@@ -649,6 +649,7 @@
     <select id="userItemDetail" resultType="com.alibaba.fastjson.JSONObject">
         select *
         from (select
+        t1.user_name as 'userName',
         t2.item_id as 'itemId',
         t2.item_title as 'itemTitle',
         t2.image_url as 'imageUrl',
@@ -671,8 +672,11 @@
         from kuaishou_item_bind_user t1
         left join kuaishou_supply_chain t2
         on t1.item_id = t2.item_id
-        where
-        t1.user_id = #{userId}
+        where 1=1
+        <if test="userId != null and userId != ''">
+            and t1.user_id = #{userId}
+        </if>
+
         <if test="start != null and start != ''">
             and t2.order_create_time &gt;= #{start}
         </if>