|
@@ -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 >= #{start}
|
|
|
</if>
|